Method: XX::Template::Basic#path_init

Defined in:
lib/xx.rb,
lib/xx-2.1.0.rb

#path_init(&b) ⇒ Object

–}}}



683
684
685
686
687
688
# File 'lib/xx.rb', line 683

def path_init &b
#--{{{
  @template = IO.read @path
  @type = @path[%r/\.[^\.]+$/o] || XHTML unless @type
#--}}}
end