Module: Ext::ErubyView

Extended by:
Equipment
Defined in:
lib/ext/eruby_view.rb

Overview

Gives eruby templating capabilities to your app.

Dependencies

  • Equipment

  • TemplateView

  • ‘erubis` package. Available as a gem. If not available, it will use `erb`

Usage

define the template_root to your views :

YourApp::Views.template_root = 'tpl/'

Then put your templates as tpl/xy.erb

rendering occurs as usual.

Issues

Rendering only occurs on regular views. Vars and blocks are not really integrated. You can still use them. Vars as *a and blocks as &b. Like <%= v %> in your template.

Defined Under Namespace

Modules: Base

Constant Summary

Constants included from Equipment

Equipment::DATA_PATH, Equipment::LIB_PATH

Instance Attribute Summary

Attributes included from Equipment

#debug

Method Summary

Methods included from Equipment

dependencies, depends_on, equip, equip_all, global_extensions, included