We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So, the following mixin, gotten from the tests:
//- Declaration mixin pet(name) li.pet= name //- Use ul +pet('cat') +pet('dog') +pet('pig')
Converts to this:
<ul>{{ $name := "cat" }} <li class="pet">{{ name }}</li> {{ $name := "dog" }} <li class="pet">{{ name }}</li> {{ $name := "pig" }} <li class="pet">{{ name }}</li> </ul>
But this is not valid text template code, it needs the dollar sign, so it will result in an error.
I expected the following output:
<ul>{{ $name := "cat" }} <li class="pet">{{ $name }}</li> {{ $name := "dog" }} <li class="pet">{{ $name }}</li> {{ $name := "pig" }} <li class="pet">{{ $name }}</li> </ul>
The text was updated successfully, but these errors were encountered:
Mmm, maybe these lines: https://github.com/Joker/jade/blob/master/config.go#L33-L34
Shouldn't they be like this:
code__buffered = "{{ $%s }}" code__unescaped = "{{ $%s }}"
I see that I can change the replace behaviour at runtime, so I can deal with this situation.
Sorry, something went wrong.
No branches or pull requests
So, the following mixin, gotten from the tests:
Converts to this:
But this is not valid text template code, it needs the dollar sign, so it will result in an error.
I expected the following output:
The text was updated successfully, but these errors were encountered: