visionmedia/jade — Issue #438: In-lining / including CSS and JavaScript files
Author: barberboy
Created: 2011-12-14 19:52:13+00:00
State: open

I have a small, one-page web application and I'd like to include all the CSS and JavaScript in-line in `style` and `script` tags, rather than linking to external files. However, I'd like to manage them as separate files in my source.

Is there a way to (conceptually) do:

script
include ../scripts/app.js

Obviously, Jade parses the "include..." as text content for the script tag and doesn't interpret it as template code, so the above snippet does not work. I'm just wondering if there is a simple workaround that I'm missing that would accomplish the same thing.