pug-pack is heavily inspired by https://github.com/jescalan/roots, and one of the things roots does is use JavaScript functions as template variables:
In development, this would output a series of <link> tags for each css file. In production, it would output a single <style> tag with all the css files minified and concat'd together.
This is also shorter than the :inject(...) custom filter syntax.
pug-packis heavily inspired by https://github.com/jescalan/roots, and one of the thingsrootsdoes is use JavaScript functions as template variables:html head != css()In development, this would output a series of
<link>tags for each css file. In production, it would output a single<style>tag with all the css files minified and concat'd together.This is also shorter than the
:inject(...)custom filter syntax.