Skip to content

Commit 9c0aa28

Browse files
updated: compiler specs
1 parent c79fba9 commit 9c0aa28

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,20 @@ riot.define('my-tag', {
8484

8585
Check for example [this demo](https://jsfiddle.net/gianlucaguarini/ed31q3qk/) to see how it's going to work
8686

87+
## New specs
88+
89+
- All the code in the `<script>` tag will be left untouched without adding any extra riot magic
90+
- The tag templates must be wrapped into a `<template>` tag
91+
- The relation `riot tag => file.tag` will be 1 to 1 so it will be not possible to define multiple tags in the same file
92+
- It will be not possible to define multiple `<script><template><style>` tags in the same file
93+
94+
## New feature
95+
96+
- The new compiler is per default async so it will always return a promise
97+
- The source code will be simplified a lot avoiding to maintain different forks for the browser/node versions
98+
- It will generate always sourcemaps
99+
- It will be simpler to validate the riot tags syntax due to a cleaner and unambigous structure
100+
87101
[travis-image]: https://img.shields.io/travis/riot/compiler.svg?style=flat-square
88102
[travis-url]: https://travis-ci.org/riot/compiler
89103
[license-image]: https://img.shields.io/badge/license-MIT-000000.svg?style=flat-square

0 commit comments

Comments
 (0)