Socket
Socket
Sign inDemoInstall

riot-compiler

Package Overview
Dependencies
0
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    riot-compiler

Compiler for riot .tag files


Version published
Weekly downloads
2.6K
increased by14.84%
Maintainers
4
Created
Weekly downloads
 

Changelog

Source

v2.3.23

  • The parsers are moved to its own directory in the node version. The load is on first use.
  • Fix riot#1325 : Gulp + Browserify + Babelify + type="es6" error.
  • Fix riot#1342, riot#1636 and request from dwyl/learn-riot#8 : Server-Side Rendered Page Fails W3C Check. The new data-is attribute is used for scoped styles in addition to riot-tag (the later will be removed in compiler v3.x)
  • The keyword defer in <script src=file> avoids that the compiler loads the file, preserving the tag - Requested by riot#1492 : Stop script tags from being evaluated with serverside riot.render. It is removed in client-side compilation because browsers will not load scripts through innerHTML.
  • It has changed the character used to hide expressions during the compilation, maybe this fix riot#1588 : Syntax Error: Invalid character \0129 (riot+compiler.min).
  • The option debug inserts newlines between the riot.tag2 parameters and the call is prefixed with the source filename - Requested by riot#1646 : Split portions of generated html with newline instead of space
  • Removed the unused parameter with the compiled-time brackets from the call to riot.tag2.
  • Removed support for raw expressions. It is unlikely this feature will be implemented in v2.3.x
  • Updated the regex that is used to match tag names, more closer to the HTML5 specs.
  • Update devDependencies.

Readme

Source

Build Status Issue Count Coverage Status NPM version NPM downloads MIT License

Documentation

Installation

Npm

$ npm install riot-compiler --save

Bower

$ bower install riot-compiler --save

Read more in the doc folder and the CHANGELOG

Please note: the documentation is a work in progress. Contributions are welcome.

For babel users

Due to changes in the babel API, from our v2.3.0 we are separating the babel support in the following types:

  • es6 - For babel and babel-core v5.8.x and below
  • babel - For babel-core v6.x - You must npm install babel-preset-es2015-riot too, for this to work.

Known Issues

  • Expressions within attribute values containing > must be enclosed in quotes. Ex: <mytag hidden="{ a > 5 }">.
  • Shorthands within attributes parsed by CoffeeScript must be prefixed with a caret: <mytag class="{^ c:1 }">

Keywords

FAQs

Last updated on 10 Mar 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc