News for hackers. Stuff that matters.
Re:Introducing Nemo: A Pythonic Haml by Kilimanjaro on Thursday January 06, 2011 @03:26PM (#2077001)
I like what I see and of course I had to optimize it for my very peculiar taste:

    html
    head
      title My web page
      meta name=this content=that
      link rel=stylesheet href=style.css
      script src=jquery.js
    body
      header
        logo
          img src=logo.jpg
      main
        content .center
          h1 Welcome to my site
          p
            This is my first post
            Feel free to comment at the end.
    
          pre #hello
            a=1+2+3
            print a
    
      footer
        p no copyrights at all

Assume every first word is a known tag or convert it to div with id. Use significant white space. Content tags like 'p' or 'pre' are closed by a blank line.

It may work for 90% of my own projects and it is by far the simplest markup I have seen, evar.

Re:Introducing Nemo: A Pythonic Haml by true_religion on Thursday January 06, 2011 @03:40PM (#2077058)
Did you fork it on Github?

I'd love to see your code.

Right now, its' looking like a better version of SPHaml, but who can tell without seeing the gotchas'.

Like when it comes to assumptions, you'd be surprised how many times I write the word "option" as the first thing in a sentence. =)

Re:Introducing Nemo: A Pythonic Haml by Kilimanjaro on Thursday January 06, 2011 @03:48PM (#2077090)
No no that's just a quick brain dump just to see if it could be optimized a bit further. I love simplicity and always try to simplify stuff just for the fun of it.
Re:Introducing Nemo: A Pythonic Haml by true_religion on Thursday January 06, 2011 @05:14PM (#2077516)
Got it.

If you do get the time, check out the code and see if you can tweak things to your liking.

I'll be doing a cleanup/refactoring later this week to make things better.

However, the core of Nemos' parsing is handled by pyparsing, so if you can read and write eBNF, then you can tweak Nemos' syntax to your liking pretty easily.