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

Does this handle recursive partials? #25

Open
stedak opened this issue Aug 6, 2024 · 0 comments
Open

Does this handle recursive partials? #25

stedak opened this issue Aug 6, 2024 · 0 comments

Comments

@stedak
Copy link

stedak commented Aug 6, 2024

Does this handle recursive partials?

Thanks!

Steve

const template_html_test =
    \\ <div>   
    \\   {{#menu_data.menu}}
    \\     {{>menu}}
    \\   {{/menu_data.menu}}   
    \\ </div>
;
const menu_partials_text = .{
    .{
        "menu",
        "<a href=\"{{link}}\">{{name}}</a>{{>menu}}",
    },
};

const result = try mustache.allocRenderTextPartials(testing.allocator, template_html_test, menu_partials_text, context);
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