Lilu Markup

Posted by yrashk

Continuing this

First of all, I’ve configured project, you can find it here. Initial quick-n-dirty implementation (not completed yet) is commited.

Oleg Andreev and me are currently playing with making syntax better. One of the options we are playing with now is making it verb oriented.

I personally like the following way (experimental, from trunk and mind):

1
2
3
4
5
6
update("#some-data").with :id => "some-lilu-data", "a" => { :href => "/" } 
populate("#blog-example").for(:each,@blogs) do |blog| 
   mapping 'a' => {:href => blog.url}, :id => blog.blog_id 
end
move("#some-data").after("#some-div")
...

Verb based syntax looks to be more descriptive then that element-oriented syntax I’ve written about in my previous post.

Comments

Leave a response