Hello Michael,
Thursday, June 14, 2012, 8:11:13 AM, you wrote:
> There are two things I was trying to avoid in designing the current setup:
IMVHO, these rules looks like the good fit for quick&dirty proof-of-concept
implementation, but for long-running "production-grade" framework it has
the following disadvantages (repeating and extending myself):
- it's unexpected. at least, plain English, html and most templating
systems are doing opposite
- it makes (much?) harder to convert manually from html to hamlet.
automatic html2hamlet conversion tool generates unreadable hamlet
files, so i prefer to convert by hand. although now i think that it may
be solved by making smarter conversion tool
- it makes it harder to further maintain hamlet templates
so, i believe that it's the problem that's better to be solved earlier than
later, when hamlet will have larger userbase
> * A bunch of special case rules about when to add whitespace. I like
> the fact that we can explain things with one sentence: there's no
> extra whitespace added.
i think that the best thing is to copy existing rules either from html
or popular indent-based templating systems. whitespacing rules isn't
the field where users demand more diversity
> * It's possible to express anything. If whitespace is *always* added,
> it's impossible to use Hamlet tag syntax for, e.g. <i>Michael</i>'s
> car.
even without any special whitespacing rule, one can just explicitly close
the tag and continue text on the same line waiting till the next space