-
Notifications
You must be signed in to change notification settings - Fork 74
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
compile time exception with script content #30
Comments
This was a new feature request someone put in: flag all inappropriate commands as errors, to prevent typos like
Having this feature also allows us to add new commands in the future without worries of breaking people's code. |
The way that this is handled in HAML & Slim is to allow switching to other parsers within html. |
Sounds like a can of worms to me, I'm not in favor of this. We should just make it easier to embed Julius and Lucius results into Hamlet. Which reminds me: we should switch over to blaze-builder instead of Data.Text.Lazy.Builder for the 1.0 release of shakespeare-(css|js). |
I had a few use cases that are easy & obvious to satisfy by passing through script/style content, but it isn't as obvious how to satisfy with an alternative technique.
I think my usage could be moved out of the template. They are little snippets, and in this case there is a global variable reference that is nice to have in the same file - it would be annoying to dedicate a file to each snippet. I could instead try to put functions using the julius quasi-quoter in one file and export them all to be available for the template. |
I don't know what the complication here is. If we have a "juliusToHamlet" or something along those lines, wouldn't it solve the problem? |
yes, and I also want to be able to have multiple julius snippets in one file- I may try to set this up in the scaffolding. |
I'm not sure what the status is of this issue currently. Can it be closed? |
A very recent update caused this:
to all of sudden throw an "exception trying to run compile-time code...".
Changing to this:
got it working, but I'd prefer to not need the extra escaping.
Any ideas why?
The text was updated successfully, but these errors were encountered: