Skip to content

Including markdown and json.lua in the package

Latest
Compare
Choose a tag to compare
@cdrubin cdrubin released this 10 Jan 15:38
· 5 commits to master since this release

No substantial code updates but:

  • a small fix for those using _context.pash
  • addition of an extension shortcut
  • including markdown.lua and json.lua by default

so one can create a layout like this:

| page.extension = 'html'
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>${ page.title } : notes.earthling.za.net</title>
</head>
<body>
${ include( '_pash/include_header.html' ) }
${ pash.markdown( page.content ) }
</body>
</html>

which will change the output extension of files that use it to .html and insert the generated HTML from the markdown contents of those files into the layout. Phew.