[Masterview-devel] MasterView generation from existing rhtml

Jeff Barczewski
Sun, 27 Aug 2006 18:02:48 -0000

Sergey,

Well I finally got the directive api refactoring done after a detour
with the rails security fix and other things.

So once I was done, I took a look at your code that you submitted and
incorporated the bug fix and other directives into the code base. I
rewrote them using hte new api. A couple of them namely text_area_tag
and text_field_tag I left out since I thought by adding them would be
confusing to people about which to use text_area or text_area_tag ...
and I think that you can get the same effect of text_area_tag by
simply using a mv:content directive and text_field_tag can be achieved
by using mv:attr=":value => ''foo''".

I also created an eval directive based off your idea with the silent
directive, though I changed it a bit so that it puts the <% foo %>
before the start of the elemnt and leaves the rest alone. I have
credited your fix and ideas to you in the source.

Anyway, thanks again for the submission. Sorry for merging it in,
things should pick up now.

All this is in subversion head and will go out with next gem/plugin release.

Jeff

> On 7/6/06, Sergey Shalatskiy <sshalatskiy at mdlogix.com> wrote:
> > Also, I fixed a couple of bugs and wrote some extra directives (mainly
by
> blatantly cutting and pasting your code).
> >
> >