3 ms·
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
by Kilimanjaro 16y ago
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.
- true_religion 16y agoDid 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. =)
- Kilimanjaro 16y agoNo 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.
- true_religion 16y agoGot 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.