Skip to content
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

Adding a literal '<' and '>' in a .crotmp file #86

Open
Xliff opened this issue Dec 1, 2023 · 1 comment
Open

Adding a literal '<' and '>' in a .crotmp file #86

Xliff opened this issue Dec 1, 2023 · 1 comment

Comments

@Xliff
Copy link
Collaborator

Xliff commented Dec 1, 2023

If it's in the docs, I must have missed it.

Consider this bit of Javascript, I am trying to run through Cro::WebApp::Template:

for (i = 0; i <= pc; i++) {
  prefix = prefix + '../';
}

That fails the template parser. It's looking for a closing template tag because of the ge operation used, above.

@librasteve
Copy link
Contributor

Did you try the HTML & JAVASCRIPT function...

https://cro.raku.org/docs/reference/cro-webapp-template-syntax#Inserting_HTML_and_JavaScript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants