craigspaeth/nap — pull request #54 by ragulka (2013-04-05 06:33:59+00:00)
Title: Add support for combined templates

This commit adds support for adding parsers for combined templates. For example, one could combined Jade with Mustache and name the file foo.mustache.jade (so that it's not necessary to write plain old html):

```jade
tr
td.title {{title}}
td.price {{price}}
td.quantity {{quantity}}
td.discountRate {{discountRate}}
td.taxRate {{taxRate}}
td.total {{total}}
```
What this commit does is that instead of having to use custom file extensions like `foo.mustachejade`, you can combine them like this: `foo.mustache.jade` and let nap figure out that it should use the `.mustache.jade` parser instead of the `.jade` parser. This allows to keep syntax highlighting working in your text editor and keeps the filename semantics cleaner.