Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.


Jade template

<%- %> insert into DOM <%= %> html escapes?


  • so apparently markdown doesn’t come standard? I installed marked as the markdown interpreter.
    • with an install with npm this gave immediate markdown functionality to the jade templates, but it was still required in the specific model in order to call markdown related functions on a string of markdown within the template helper.
  • I also need to translate the modifications made to the HTML on the page to be translated back into markdown to store them on the server. This required another plugin and I settled on html.md. The install was clean and worked smoothly from the start.

This in the view

  • something that was not immediately apparent was the fact that this has different meanings in the template helper versus onRender for example.