sqrm
v0.1.7
Published
sqrm (pronounced squirm and short for square embrace) is the illicit love child of markdown and yaml.
Readme
sqrm
markdown is for formatting, yaml is for data ... but why can't we have both?
sqrm (pronounced squirm and short for square embrace) is a format that produces html and json output. it allows you to mix formatting and data in a single document
- indenting is important -- sqrm supports nesting html divs
- hashtags -- sqrm uses hashtags like your use on twitter, they are fundamental to server side and client side processing
- scripting -- sqrm supports embedded javascript to customize the output
- includes -- sqrm documents can easily include other documents
processing pipeline
1. string -> lines (stringToLines) sqrm-to-last (intermeddiatry lines)
2. lines -> flat-sqrm-w-script (linesToSqrm) last-to-sxast (sqrm-scripted ast)
3. flat-sqrm-w-script -> javascript (sqrmToCode) sxast-to-js
4. javascript -> flat-sqrm (fn response) produces sqrm ast (no script elements)
5. flat-sqrm -> sqrm-tree (sqrmToSqrmNested)
6. sqrm-tree -> hast (sqrmToHast)
7. hast -> html (hastToHtml)