没有合适的资源?快使用搜索试试~ 我知道了~
string_template:使用Ruby的String插值语法的Rails模板引擎,专注于速度
共19个文件
rb:6个
string:3个
gitignore:1个
需积分: 9 0 下载量 63 浏览量
2021-02-06
00:20:22
上传
评论
收藏 9KB ZIP 举报
温馨提示
StringTemplate Rails最快的模板引擎。 概念 Ruby的String文字具有如此强大的内插机制。 它几乎是一个模板引擎,是组成String的最快方法,并且语法已经为每个Ruby程序员所熟知。 我们为什么不将其用于应用程序中的查看文件? 安装 将此行添加到Rails应用程序的Gemfile中: gem 'string_template' 然后捆绑。 句法 StringTemplate的语法基于Ruby的String插值。 另外,您可以使用动作视图功能。 例 这是一个由脚手架生成的ERB模板及其string_template版本的示例。 ERB: <p id="noti
资源推荐
资源详情
资源评论
收起资源包目录
string_template-master.zip (19个子文件)
string_template-master
string_template.gemspec 1KB
.gitignore 86B
README.md 3KB
hello.erb 1KB
bin
console 350B
setup 131B
test
_partial.html.string 14B
string_template_test.rb 1KB
test_helper.rb 251B
main.html.string 30B
Gemfile 170B
MIT-LICENSE 1KB
benchmark.rb 528B
hello.string 950B
.travis.yml 105B
lib
string_template.rb 117B
string_template
railtie.rb 285B
handler.rb 223B
Rakefile 198B
共 19 条
- 1
资源评论
zhuyurrr
- 粉丝: 27
- 资源: 4714
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功