Class: MasterView::Directives::Eval

Inherits:
MasterView::DirectiveBase
  • Object
show all
Defined in:
lib/masterview/directives/eval.rb

Overview

outputs a <% attr_value %> before the element example: <foo><bar mv:eval=“i = 1”>baz</bar></foo> becomes: <foo><% i = 1 %><bar>baz</bar></foo> Inspired by Sergey Shalatskly’s silent tag