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

Embedded HTML with double quoted attributes breaks interpreter #44

Open
robacarp opened this issue Jun 15, 2018 · 0 comments
Open

Embedded HTML with double quoted attributes breaks interpreter #44

robacarp opened this issue Jun 15, 2018 · 0 comments

Comments

@robacarp
Copy link

This template:

            div
              <img src="/">

Causes this compile time error:

Syntax error in expanded macro: macro_4629572560:239: unexpected token: DELIMITER_START

__kilt_io__ << ("<img src="/">").to_s(__kilt_io__)
                           ^

The " symbol isn't being escaped, and it's causing an error in the string literal.

A quick workaround for this is to use single quotes.

slang 1.7.1
crystal 0.24.2

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

1 participant