-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
Reading partials from memory #20
Comments
In short, yes. Note: In your implementation, you need replace |
@harttle I've implemented my own include tag to handle keeping templates in an object (I'm actually parsing the template when I add it to the object and have been storing that), but I always seem to run into issues with this when I update LiquidJS. So I wanted to add to this question as a sanity check. The render function looks like this:
But I'm having issues with passing the correct data to the render function. Passing
So what's the correct thing I should be passing here? Or should I just create a new object that contains everything from This also doesn't take into account variables passed to it by |
@harttle Ahhh, never mind, I think I got it. |
I'd love to be able to have all my templates as strings in a plain object, something like:
Is this possible with
shopify-liquid
? I understand I can simply doparseAndRender(templates['show.html'], { ... })
, but is there a way I can get the partials/includes working as well?The text was updated successfully, but these errors were encountered: