MasterView is a rails-optimized (x)html friendly template engine plugin
provides another option to the existing rails view templates (rhtml and
rxml). The main idea is to provide a template engine that would provide
the power of layouts, partials, and rails helpers but still be
editable/styleable in a WYSIWYG editor. It was also a major goal that
syntax of these attribute directives be very similar to rails helpers so
that one could intuitively start using MasterView with little learning
other than knowing rails. MasterView was inspired by Amrita, Kwartz,
Tapestry, Zope/PHP TAL, Liquid, and Web Objects but designed with a
approach and specifically targetted for rails users.
Fixed apache2 scgi problem where masterview was not being loaded at
Added Interactive template console to admin pages for testing/learning
masterview directives work.
Changed default development settings for enable_admin_pages and
enable_view_rhtml = true (false in production) to make it easy
for new users to get up and running. Added check_box, radio_button,
select, collection_select directives. Refactor attr_value parsing
to be more robust taking into account nested objects. Internal rework
of directive handling to support alternate namespaces for directives.
Std app directives dir at rails app/masterview/directives will be
automatically added to MasterView load path if exists.
Fixes problem when rails encounters exception in either compiling or
involving RuntimeError in the generated rhtml. The rails TemplateError
class looks at the file system for the template contents. So when
generate_rhtml is false (no file is generated) rails was not able to
find source and was not outputting an error page. Rails TemplateError
class was extended to look at MasterView store first and then fallback
to file system.
More details, screenshots, and video at http://masterview.org/