Having got my Satchmo shop functioning, I turned my attention to styling and was reminded how much I hate HTML and CSS. I found the tool 'clevercss', which seems to improve CSS a little, at least in part by introducing Python concepts, and I thought 'why not do the same for HTML -- introduce Python and Django concepts.
1- Use indentation to delimit blocks. 2- Quote HTML literal strings so an editor can highlight them easily 3- allow defined constants and macros. 4- inheritance like Django templates 5- indicate Django tag with a single char (reduce typing) 6- indicate Django vars with '[]' (reduce typing) 7- '#' comments like python --- Some fragments --- body: h1: "My Title" "My Content" # indentation indicates end of h1 block body: h1: style = foo #attributes are un-quoted id = main # attributes can also be here "My Title" "My Content" .extends base.khtm # '.' introduces (django) tag, no quotes # (khtm = 'kinder html') .if [a_var]: # django var is in brackets "content" br: ; # use semicolon for empty block a: href= [besturl] .trans "Most Popular" a: href= [besturl] .trans "Most Popular" .block Body: "some content" .var title = "My page title" h1: [title] "content" It seems to me that this kind of thing is easily translated to Django templates, quicker to type, easier to read, and infinitely extendable. The syntax and names should be recognizable to a Python/Django/Html user. Any thoughts before I begin playing? Karl --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to satchmo-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---