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

Nested comment blocks {{! ... {{! ... }} ... }} do not work as expected #165

Open
DilumAluthge opened this issue Dec 20, 2024 · 0 comments

Comments

@DilumAluthge
Copy link

DilumAluthge commented Dec 20, 2024

Minimum working example (MWE)

import Mustache

template = Mustache.mt"""
    Hello.
    {{! Foo.  {{! Bar. }}  Baz.}}
    Goodbye.
""";

Mustache.render(template) |> println;

Expected output:

I would expect that Mustache.render(template) |> println would print out the following:

Hello.
Goodbye.

In other words, I would expect that everything inside both the "outer" comment block and the "inner" comment block would be removed.

Actual output:

julia> import Mustache

julia> template = Mustache.mt"""
       Hello.
       {{! Foo.  {{! Bar. }}  Baz.}}
       Goodbye.
       """;

julia> Mustache.render(template) |> println;
Hello.
  Baz.}}
Goodbye.

Version info

I tested this using Julia 1.10.5 and Mustache.jl v1.0.20 on macOS.

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