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

Template.Render doesn't replace tags inside tag recursively #319

Closed
jasonycw opened this issue Sep 7, 2018 · 1 comment
Closed

Template.Render doesn't replace tags inside tag recursively #319

jasonycw opened this issue Sep 7, 2018 · 1 comment
Labels

Comments

@jasonycw
Copy link

jasonycw commented Sep 7, 2018

Dotliquid version

2.0.298.0

Expected behavior

Replace tag inside the tag

Actual behavior

Only replace the tag once, not recursively

Steps to reproduce the Problem

import file

{{something}}
{{somethingElse}}

image

Result:

First something and something {{somethingElse}}
SOMETHING ELSE

I was hoping for

First something and something SOMETHING ELSE
SOMETHING ELSE

@microalps
Copy link
Contributor

The method render is intender to render while you are trying to use it to parse. You might be able to achieve this using a custom IFileSystem but it would be hack and not what this library is for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants