Class: Ramaze::Template::Tagz

Inherits:
Template show all
Defined in:
lib/ramaze/template/tagz.rb

Overview

Is responsible for compiling a template using the Tagz templating engine. Can be found at: rubyforge.org/projects/codeforpeople/

gem install tagz

be sure you get version 1.0 or higher

Defined Under Namespace

Modules: Methods

Class Method Summary collapse

Methods inherited from Template

caching_compile, reaction_or_file, render_method, result_and_file, wrap_compile

Methods included from Helper::Methods

extend_object, #helper, included

Class Method Details

.transform(action) ⇒ Object

Entry point for Action#render



21
22
23
24
25
26
27
28
29
# File 'lib/ramaze/template/tagz.rb', line 21

def transform action
  result, file = result_and_file(action)
  if file
    markup = "tagz{#{ file }}"
    action.instance.extend Methods
    result = eval markup, action.binding, file
  end
  result
end