[jifty-devel] some progress update about Template::Declare

Ruslan Zakirov ruslan.zakirov at gmail.com
Wed Jan 7 05:56:47 EST 2009


New syntax. I'm afraid such step could lower maintability. What the
point? What will it give? Which problems it solves?

On Sat, Dec 27, 2008 at 2:55 AM, Kang-min Liu <gugod at gugod.org> wrote:
> Hi, all
>
> Recently I've been trying to use Devel::Declare to re-implement
> Template::Declare for this very fancy syntax:
>
>     div(id => "salute") { "Hiya" }
>
> And it worked very fine, big success. I'm very impressed by how much
> it can be done with
> Devel::Declare and B::Hook* modules. Kudos to rafl++
>
> I released the implementation under the name "Markapl" (Mark up as
> Perl) on CPAN few days ago.
> The Markapl repository is on Github:  http://github.com/gugod/markapl/tree/master
>
> And since obra requested, I'm currently integrating it into
> Template::Declare. Several basic parts are
> all ported, so statement like these are all working now:
>
>     div(id => "salute") { "Hiya" }
>     div("#salute") { "Hiya" }
>     div(".salute") { "Hiya" }
>     div("#salute.box") { "Hiya" }
>
> And it's still backward compatible:
>
>     with(id => "salute"), div { "Hiya" }
>     div { attr { id => "salute"} outs "Hiya" }
>
> The development is on "markapl-syntax" branch of Template-Declare
> repository, the new code passes
> about 60% of tests now. So please take a look, give me some thoughts
> and may patches. It's all welcome. :)
>
> btw, I've just done a tool Markpl::FromHTML (on CPAN now) that
> currently convert
> simple HTML to Markapl. This can be a pretty handy tool when working
> with HTML-capable visual designers. :)
>
> Cheers,
> Kang-min Liu
>
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
>



-- 
Best regards, Ruslan.


More information about the jifty-devel mailing list