Socket
Socket
Sign inDemoInstall

riot-compiler

Package Overview
Dependencies
1
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.7K
increased by15%
Maintainers
4
Install size
489 kB
Created
Weekly downloads
 

Changelog

Source

v2.3.12

  • Gets rid of the zero-indentation restriction for custom tags, now you can indent these tags, but the opening and closing tag must have exactly the same indentation (length and type). All the tag will be unindented by this amount.
  • Support for src and charset attributes in <script> tags for reading JavaScript sources from the file system - riot#1116, riot#507
  • The compile function can return separate parts by setting the new entities option. These parts has unescaped newlines.
  • New attribute options for script and style tags will append/overwrite attributes in the default configuration object of the parser at tag level.
  • Fix riot#1261 : <pre> tag does not preserve neither \n nor \t. Now whitespace within <pre> tags is always preserved.
  • Fix riot#1358 : Empty style in tag (scoped) breaks.

Readme

Source

Build Status Code Quality Coverage Status NPM version NPM downloads MIT License

Documentation

Installation

Npm

$ npm install riot-compiler --save

Bower

$ bower install riot-compiler --save

For babel users

Due to recent changes in the babel API, from v2.3.0-beta.7 we are supporting babel versions previous to 6.0.2 through parsers.css.es6 (<script type="es6">), new versions are not compatible with the node API.

For babel-core, please use the new parsers.css.babel (<script type="babel">). You must npm install babel-preset-es2015 too, for this works.

Keywords

FAQs

Last updated on 19 Nov 2015

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc