-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Avoid parsing template contents as html before passing to transform function #48
Comments
Curious if you tried mixing this with webc:raw? |
I didn't! I'll try next time I'm at the computer. Does raw prevent reprocessing? If raw fixes it, it would be nice to be able to configure a specific transform to default to raw like page.setTransform(myTransform, { raw: true }) |
Just tested, the result is the same even with |
Uncovered a pretty hefty bug with raw Shipping with the next version (probably 0.6) |
Amazing! Thank you. Does this mean I should or shouldn't use |
Shipped with |
Lovely stuff. Appreciate it |
Thank you! |
I was playing around building a custom transform, and i noticed that the innards of the template seem to get parsed as html and then passed to to the transform function, rather than the raw content. For example:
If I've registered a custom transform like
The content I receive has already been processed, so we see in the logs:
Notice the quotes around the curly braces that weren't there before. If possible it would be nice to receive the raw, untouched contents, which can later be parsed after I have transformed it.
The text was updated successfully, but these errors were encountered: