DRYML haml style

7 views
Skip to first unread message

atmorell

unread,
Feb 23, 2010, 3:09:33 AM2/23/10
to Hobo Users
Hello,

DRYML could be compacted a lot if it used indentation for closing tags
- like the haml framework http://haml-lang.com/ It's just a thought,
and totally beyound my skills to implement such a feature.

DRYML

<show-page>
<collection-section:>
<h3><Your/> Assigned Tasks</h3>
<repeat with="&@user.tasks.group_by(&:story)">
<h4>Story: <a with="&this_key"/></h4>
<collection/>
</repeat>
</collection-section:>
</show-page>

DRYML haml style

show-page
collection-section:
h3 <Your/> Assigned Tasks
repeat with="&@user.tasks.group_by(&:story)"
h4 Story: <a with="&this_key"/>
<collection/>

Bryan Larsen

unread,
Feb 23, 2010, 9:26:19 AM2/23/10
to hobo...@googlegroups.com
Integrating such a feature straight into DRYML would be difficult,
because DRYML is built around an XML parese.

However, writing a preprocessor should not be difficult. I don't think
an exact clone of HAML would work well, but certainly something
"inspired by" HAML could work out nicely.

If somebody were to take on such a task, I would certainly be willing to
help.

Bryan

Reply all
Reply to author
Forward
0 new messages