riot-compiler
Advanced tools
Changelog
v2.3.13
style
option for setting the CSS parser through the options
object.Changelog
v2.3.12
src
and charset
attributes in <script>
tags for reading JavaScript sources from the file system - riot#1116, riot#507compile
function can return separate parts by setting the new entities
option. These parts has unescaped newlines.options
for script
and style
tags will append/overwrite attributes in the default configuration object of the parser at tag level.<pre>
tag does not preserve neither \n
nor \t
.
Now whitespace within <pre>
tags is always preserved.Changelog
v2.3.11
npm install babel-preset-es2015
too, for this works.
Use type="es6" for babel and babel-core v5.8.x and bellow - riot#1039settings.brackets
no longer works.Changelog
v2.3.19
brackets
.Changelog
v2.3.0
This is a complete rewrite and the first solo version of the compiler.
riot.tag2
function, with the same parameters as riot.tag
and an
additional one: the brackets used in the compilation. riot.tag2
requires all parameters except the brackets,
so the compiler generates all but ignores the brackets if there are no generated expressions."
, to avoid issues with HTML markup.Enhancements
<script>
blocks. These can have different types and are merged with the untagged script block, if any.>
operator needs to be enclosed in quotes) - riot#744^
, the expression is not passed to any parser. This is some sort of type=none at expression level - riot#543, riot#1090type="scoped-css"
for style
tags is deprecated, use only scoped
or scoped="scoped"