How to use the riot/compiler.compile function in riot

To help you get started, we’ve selected a few riot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mingliangfeng / flux-riot / build / support / preprocessor.js View on Github external
process: function(src, path) {
    if (coffee.helpers.isCoffee(path)) {
      return coffee.compile(src, {'bare': true})
    }
    if (path.match(/\.tag$/)) {
      return preamble + compiler.compile(src)
    }
    return src
  }
}
github mingliangfeng / flux-riot / examples / todo / build / support / preprocessor.js View on Github external
process: function(src, path) {
    if (path.match(/\.coffee$/)) {
      return coffee.compile(src, {'bare': true})
    }
    if (path.match(/\.tag$/)) {
      return preamble + riot.compile(src)
    }
    return src
  }
}