-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'break out' feature #3
Comments
HTML could also be allowed in the heredocs, so authors could write:
Of course, these strings get auto-escaped, but it would also be possible to differentiate between double and single quoted heredocs ( |
Initial implementation done in Not 100% I'm happy with the grave-accent being used as the delimiter but I think I prefer it to '!' or '|'... So, as it's currently implemented, you can do:
A single tick/grave-accent is used to delimit on single or multi-lines. |
@wooorm Currently siml doesn't support heredocs, although that code will work because it's parsed as:
i.e. the main string surrounded by two empty strings. Maybe I should add explicit support for |
Oh right, that’s why those "heredocs" acted so funky :).
…will get converted to: <script>
a > b
</script> |
If we add the back-tick for plain unescaped HTML would that solve the
|
Certainly! |
But…
|
SIML would parse that as unescaped. The heredoc would just be decorative or useful if you want to include the normal delimiting character in the actual string, e.g.
|
Feature's in master. Bumped to 0.3.3. |
Can you push 0.3.3 to the npm registry? Currently 0.3.2 is the latest version. |
@Anaphase Sorry about that -- it should be updated now |
@padolsey Thanks! |
Add a syntax that allows you to break out of SIML and simply write regular HTML.
E.g.
Syntax undecided though. Possibly adopt a similar approach to Jade with the pipe.
The text was updated successfully, but these errors were encountered: