Sha256: b581ba267a6cd1b79c5857fa01b73e50016bb427fc51f89907faec8752535ffb
Contents?: true
Size: 604 Bytes
Versions: 3
Compression:
Stored size: 604 Bytes
Contents
require 'mustache_render' ROOT_PATH = File.dirname(__FILE__) + '/lib' # -*- encoding : utf-8 -*- MustacheRender.configure do |config| # 默认的模板渲染媒介 # :file => 文件系统渲染 config.default_render_media = :file # 默认的文件模板的根目录 config.file_template_root_path = ROOT_PATH + '/resources/templates' # 默认的文件模板的扩展名称 config.file_template_extension = '.mustache' # 当字段缺少的时候是否抛出异常 config.raise_on_context_miss = false # config.logger = Rails.logger config.logger.level = Logger::INFO end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mustache_render-0.0.24 | spec/spec_helper.rb |
mustache_render-0.0.23 | spec/spec_helper.rb |
mustache_render-0.0.22 | spec/spec_helper.rb |