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

Multiline attributes inside an attribute wrapper #43

Open
00dani opened this issue May 19, 2018 · 0 comments
Open

Multiline attributes inside an attribute wrapper #43

00dani opened this issue May 19, 2018 · 0 comments

Comments

@00dani
Copy link

00dani commented May 19, 2018

in Slim, you can take multiple lines to set attributes on a tag, if you use an attribute wrapper. For example, here's something I just tried:

script{
  defer crossorigin="anonymous"
  src="https://use.fontawesome.com/releases/v5.0.13/js/all.js"
  integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe"
}

But in Slang (testing with 1.7.1), the above syntax produces an error on compilation, since it thinks there's an unterminated curly brace. This should probably work!

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