Sha256: 25df8a3fc435ec5ddcbcc988edba6bc35f7f0b42ab5ea8be97cd2d4dd8159e87
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'bijou' module Ramaze module Template # Is responsible for compiling a template using the Bijou templating engine. # Can be found at: http://bijou.rubyforge.org/ class Bijou < Template ENGINES[self] = %w[ bijou rbb ] class << self # Transform via Haml templating engine def transform action compiled = wrap_compile(action) context = ::Bijou::Context.new(::Bijou::Config.new) # context.container_callback = method(:container_callback) # context.component_callback = method(:component_callback) ::Bijou::Processor.execute(context, compiled, 'GeneralView', {}) end # Instantiates Haml::Engine with the template and haml_options trait from # the controller. def compile(action, template) parser = ::Bijou::Parser.new parser.parse('GeneralView', template) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.5 | lib/ramaze/template/bijou.rb |