Skip to content

Commit

Permalink
New blog post.
Browse files Browse the repository at this point in the history
  • Loading branch information
gummesson committed Oct 19, 2013
1 parent 917f2af commit 7af94cb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions _posts/2013-10-19-partially-use-partials-in-your-markup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "Partially: use partials in your markup"
tags: ["Code", "JavaScript", "Node.js"]
layout: post
comments: true
external-url: false
---

I've always been jealous of the plethora of build tools available on OS X, in particular [Hammer for Mac](http://hammerformac.com/) and it's excellent `@include` feature. Rather than buying a new computer I decided to instead create yet another [Node.js](http://nodejs.org/) project and build it myself. I named it [Partially](https://github.com/gummesson/partially)[^20131019-1]. It enables you to do this:

<!-- @include partial.ext -->

It'll then include the partial in question in the file. It should be able to handle any markup language, although I've some far only tried HTML, [Haml](http://haml.info/), [Jade](http://jade-lang.com/) and [Markdown](http://daringfireball.net/projects/markdown/).

This was also the first real project that I decide to go all in on and write actual tests for. It suprised me that once I got into it it was actually quite fun! I have no idea if I did it the "right" way, but I atleast tried to. Pull requests are always welcome. In fact, they're even encouraged!

* * *

[^20131019-1]: Of course!
2 changes: 1 addition & 1 deletion humans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Everything: Ellen Gummesson

/* THE SITE */

Last update: 2013/10/15
Last update: 2013/10/19
Standards: HTML5 & CSS3
Components: normalize.css (http://necolas.github.io/normalize.css/)
highlight.js (http://softwaremaniacs.org/soft/highlight/en/)
Expand Down

0 comments on commit 7af94cb

Please sign in to comment.