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

Support @: for opened tags #110

Open
guumo opened this issue Sep 19, 2016 · 1 comment
Open

Support @: for opened tags #110

guumo opened this issue Sep 19, 2016 · 1 comment

Comments

@guumo
Copy link

guumo commented Sep 19, 2016

It would be a good idea to support the syntax @: for open tags used in conditionals. For example, to add a link.

@if(model.url) { @:<a href="@model.url"> }

@kirbysayshi kirbysayshi added the bug label May 8, 2017
@kirbysayshi
Copy link
Owner

kirbysayshi commented May 8, 2017

Does Razor allow this? I was under the impression that Razor forced @: to treat all content until a new line as "content" and not code.

Regardless, vash is actually failing because the <a> tag is unclosed. Use the self-closing version instead: @:<a href="@model.url" />

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