manveru / nagoro

A XHTML templating engine written in Ruby based on so-called pipes

This URL has Read+Write access

manveru (author)
Sun Jul 05 17:28:12 -0700 2009
commit  bb4fef37b8d15984ddbd8bda4233a876289ebbe9
tree    3d017454b4d70b38726f8e288ad85525a0f57757
parent  8f7ed2abe62dbc2360b491f8c872e244a24bc3ba
nagoro / lib / nagoro.rb
100644 23 lines (16 sloc) 0.428 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$LOAD_PATH.unshift(File.dirname(__FILE__))
 
require 'nagoro/version'
require 'nagoro/template'
 
module Nagoro
  autoload :Tidy, 'nagoro/tidy'
 
  def self.compile(io, options = {})
    Template.new.compile(io, options)
  end
 
  def self.render(obj, options = {})
    compile(obj, options).result
  end
 
  def self.tidy_render(obj, options = {})
    compile(obj, options).tidy_result
  end
 
  class Error < StandardError; end
end