Stencil:Stencil是Swift的一种简单而强大的模板语言

时间:2021-04-30 12:02:16
【文件属性】:
文件名称:Stencil:Stencil是Swift的一种简单而强大的模板语言
文件大小:88KB
文件格式:ZIP
更新时间:2021-04-30 12:02:16
Swift 模版 Stencil是Swift的一种简单而强大的模板语言。 它提供类似于Django和Mustache的语法。 如果您熟悉这些内容,您将对Stencil感到宾至如归。 例子 There are {{ articles.count }} articles. < ul> {% for article in articles %} < li>{{ article.title }} by {{ article.author }} {% endfor %} import Stencil struct Article { let title: String let author: String } let context = [ " articles " : [ Article ( title : " Migrating fr
【文件预览】:
Stencil-master
----.gitignore(62B)
----Sources()
--------Tokenizer.swift(4KB)
--------Include.swift(2KB)
--------Filters.swift(4KB)
--------Context.swift(2KB)
--------_SwiftSupport.swift(185B)
--------Node.swift(4KB)
--------NowTag.swift(1KB)
--------Lexer.swift(8KB)
--------Loader.swift(3KB)
--------Errors.swift(2KB)
--------Inheritence.swift(6KB)
--------KeyPath.swift(3KB)
--------Variable.swift(8KB)
--------FilterTag.swift(1KB)
--------ForTag.swift(5KB)
--------Extension.swift(3KB)
--------Environment.swift(2KB)
--------Parser.swift(7KB)
--------Expression.swift(8KB)
--------Template.swift(3KB)
--------IfTag.swift(9KB)
----.swiftlint.yml(2KB)
----.travis.yml(712B)
----LICENSE(1KB)
----Stencil.podspec.json(736B)
----Package@swift-5.swift(575B)
----CHANGELOG.md(15KB)
----README.md(2KB)
----Package.resolved(581B)
----Package.swift(570B)
----Tests()
--------LinuxMain.swift(119B)
--------StencilTests()
----rakelib()
--------pod.rake(413B)
--------changelog.rake(889B)
--------release.rake(2KB)
--------github.rake(1KB)
--------utils.rake(539B)
----Gemfile(103B)
----docs()
--------_templates()
--------Makefile(7KB)
--------api.rst(4KB)
--------custom-template-tags-and-filters.rst(2KB)
--------index.rst(1KB)
--------templates.rst(5KB)
--------conf.py(10KB)
--------installation.rst(1KB)
--------builtins.rst(9KB)
--------getting-started.rst(1KB)
----Rakefile(188B)
----Gemfile.lock(2KB)

网友评论