Watch files and automatically create html files

Harm de Wit's Avatar

Harm de Wit

07 Jun, 2012 04:20 PM

I'd like to have a function where u can watch a markdown file or folder and it automatically updates a linked html file or folder. Then i always have the html files available. Trough this one could even have free hosting via Dropbox or something by placing it in a publicly accessible folder.

  1. Support Staff 1 Posted by Brett on 07 Jun, 2012 04:37 PM

    Brett's Avatar

    You can do this with a custom script. You'd create the shell template from an exported Marked document, removing all of the content in div#wrapper. Then just have the custom processor render the html and insert it in the template, writing it out to your HTML file before passing it back to Marked. The processor would run every time Marked detects a change in the Markdown file.

    I know it's adavanced, but this is a one-off feature that is already possible and I don't want to add a dozen different automation options.

  2. 2 Posted by Harm de Wit on 07 Jun, 2012 08:16 PM

    Harm de Wit's Avatar

    Hmm ok i understand you want to keep your app focused. Maybe i'll write a Livereload extension. I like the easy watch folder/file management. I think it'll be easier to use than this Guard markdown plugin.

  3. Brett closed this discussion on 12 Jun, 2012 09:38 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac