Sha256: f73f5f1eeac30fa058cbaeb7d2409f9786f7e360b1f53d54790cafb869dca434
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
require 'tilt' require 'myth' module Myth module Rails # Myth template implementation. See: # http://myth.io/ # # Myth templates do not support object scopes, locals, or yield. class MythTemplate < ::Tilt::Template self.default_mime_type = 'text/css' def prepare end def evaluate(scope, locals, &block) @output ||= ::Myth.preprocess(data, options) end def allows_script? false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
myth-rails-1.0.1 | lib/myth/rails/myth_template.rb |