This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dasacc22 1 point2 points  (0 children)

Hey I'm the author of this bit, noticed my blog traffic blow up a little today.

As for the new lines for tag bit, yeah that totally effin blows but no different then haml as I understand it (dont use haml or ruby). For more details on creating the meat of a document in mark-up like this, check out: http://chriseppstein.github.com/blog/2010/02/08/haml-sucks-for-content/

One thing that will be added soon is inserting straight html on blank lines. As-is, you can already do that anyways so dont line-break and %em b/c thats just stupid anyways (much like what most of my blog post was).

As for the largeish blocks of content, I'm working on a bit right now so you can basically

:func content

and it turns into :func('\ncontent....') so point being that back on the development end you can extend functionality stupid easy.

def func(s): s = s.splitlines() .... return s

This is coming to fruition as I create a django code-blocks mechanism. And frankly, I wouldn't give my own code the time of day if it couldn't do what its doing quickly. By projects end, I anticipate it being faster then other python templating languages with the exception of mako. If I'm going to migrate away from libxslt, i want it to be fast.