Lilu trunk news

Posted by yrashk

I have decided to announce some news that were happening in trunk recently.

  • Major Rails helpers problem/bug was fixed (thanks to Nicholas Faiz), now error_messages_for() and friends works just fine
  • I’ve extended possibilities of at() syntax, now you can do things like:

        update('#username').with text => at('a').text 

which converts


        <div id="username"><a href="#">john doe</a></div> 

to


        <div id="username">john doe</div> 

or


        update(:all,'.user/a').with text => at('..')[:id] 

which converts


        <div id="yrashk" class="user"><a href="#">username goes here</a></div> 

to


        <div id="yrashk" class="user"><a href="#">yrashk</a></div> 

The main point is that at() got some methods like (#[] and #text) and could now be used as value. Previously you was required to use lambdas for such kind of functionality.

This is quite new and experimental functionality, though I already make use of it and find it interesting.

  • Now when integrated with Rails, Lilu makes use of .erb.html templates as well (if .html was not found)

    What was the reason for this? Well, quite simple. I just felt sick typing those stylesheet links, forms, ajax stuff in plain HTML. If

    you or your designers could use these little nice Rails helpers, then why not? The main thing is to understand what to use and what to not to use. Also it could be helpful for transitioning from ERB to Lilu.

    At the moment, mockup_server does not support this feature though. I think I will prepare some workaround soon (it is in progress)