没有合适的资源?快使用搜索试试~ 我知道了~
stencil:强大的 Ruby 视图小部件
共23个文件
rb:13个
erb:2个
rakefile:1个
需积分: 5 0 下载量 109 浏览量
2021-06-27
12:16:44
上传
评论
收藏 11KB ZIP 举报
温馨提示
模版 Stencil 是一个小框架,用于生成非常可重用和可测试的视图。 每个模板类都有自己的方法和模板文件。 它受到的启发,允许在不失去模板文件的便利性的情况下进行继承和封装。 安装 将此行添加到应用程序的 Gemfile 中: gem 'stencil', git: "git://github.com/cohitre/stencil.git" 然后执行: $ bundle 用法 例子 # app/stencils/user_information_stencil.rb class UserInformationStencil < Stencil :: Base template "user_information_stencil" needs :user optional size : :small def big? @size == :big en
资源推荐
资源详情
资源评论
收起资源包目录
stencil-master.zip (23个子文件)
stencil-master
.gitignore 154B
Guardfile 162B
.rspec 18B
LICENSE.txt 1KB
spec
stencil
template_finder_spec.rb 1KB
html_helpers_spec.rb 1KB
config_spec.rb 479B
version_spec.rb 135B
base_spec.rb 4KB
spec_helper.rb 187B
fixtures
user_profile_stencil.html.erb 83B
basic_profile_stencil.html.erb 75B
README.md 1KB
lib
stencil
template_finder.rb 738B
base.rb 2KB
html_helpers.rb 531B
config.rb 377B
version.rb 39B
railtie.rb 209B
stencil.rb 215B
Gemfile 92B
stencil.gemspec 1KB
Rakefile 28B
共 23 条
- 1
资源评论
徐志鹄
- 粉丝: 17
- 资源: 4661
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功