Harp, the static web server with built-in preprocessing, makes Markdown, LESS, CoffeeScript, and more, as easy to use as HTML, CSS, and JavaScript.
When building a responsive site we, need to make our widgets flexible and want them to look sharp on Retina displays. How do we do it?
Each Friday afternoon, we have an hour of tech talks called Dips and Disscussion. Last week I presented on Harp and my work developing this site. One comment I received was that people would prefer to have metadata about a post stored in a comment in the Markdown file which determines the content of the post, rather having to add metadata about about the post to a separate JSON file. At first I though this would not be possible - and perhaps even not desirable. However, the more I thought about it, the more it seemed like a good idea.
One of the things I quickly found frustrating when using Harp was that when I wanted to manage collections, or copy objects, I could not use utility libraries like underscore.js
. When I wanted to format dates, I could not use moment.js
. It seemed that Jade only allowed me to write one line of JavaScript at a time, with each line prefixed by with a minus: