norcalli / ractiveify

Browserify transform for ractive components (and by extension templates) which allows for compilation of embedded scripts and styles!
9 stars 1 forks source link

Jade templates #8

Closed temoto closed 1 year ago

temoto commented 8 years ago

It's great that you have extensible compilers. I wasn't bright enough to apply that mechanism for preprocessing main template with Jade (pug). Please teach me how to parse jade templates in components. I'm ready to patch any existing modules, just not confident with frontend technologies yet.

I have following source tree:

src/
- index.coffee
- component/
.. - messages.jade

and browserify setup in gulp:

  var bundler = browserify({
    debug: true,
    entries: ['src/index.coffee'],
    extensions: ['.coffee', '.js'],
    cache: {},
    packageCache: {},
    plugins: plugins,
  });
  bundler.transform(jadeify, {compileDebug: true, pretty: true});
  bundler.transform(coffeeify);
  bundler.transform(ractiveify);

Browserify transform jadeify works, but it doesn't descend into ractiveify (it's clear why, wrong extension) but that's pipeline that I need (and guess many other people too).

temoto commented 1 year ago

likely irrelevant now