Sha256: bf885681bc3e0f9191be600b99a9888848c24354a668af700fb423614c4dc3f3
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
require 'malt/engines/abstract' module Malt::Engines # Ruby as a template engine. # # http:// # class Ruby < Abstract default :rb # def render(params={}, &yld) text = params[:text] file = params[:file] data = params[:data] data = make_binding(data, &yld) eval(text, data, file) end # Ruby compiles to Ruby. How odd. ;) def compile(text, file) text end private # def initialize_engine end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
malt-0.1.0 | lib/malt/engines/ruby.rb |