class Crustache::Engine
- Crustache::Engine
- Reference
- Object
Defined in:
crustache/engine.crConstructors
Instance Method Summary
- #render(filename : String, model, io)
- #render(tmpl, model, io)
- 
        #render(filename : String, model)
        
          It renders a template loaded from filenamewithmodeland it returns rendered string.
- #render(tmpl, model)
- #render!(filename : String, model, io)
- 
        #render!(filename : String, model)
        
          It is a strict version Engine#render.
Constructor Detail
Instance Method Detail
        
        def render(filename : String, model)
        #
      
      
        It renders a template loaded from filename with model
and it returns rendered string.
If filename is not found, it returns nil, but it dosen't raise an error.
        
        def render!(filename : String, model)
        #
      
      
        It is a strict version Engine#render.
If filename is not found, it raise an error.