Liquid error: No such template 'topmenu'
I'm not be able to recover the partials from S3. I think the problem
could be here
Liquid::Template.file_system = ::Liquid::LocalFileSystem.new(path)
but I'm not sure
Any of you have experience storing templates on S3
Thanks!
Also, you want to store your templates in the DB not in S3. S3 is kind
of crazy for this as it means every hit to your webapp will generate
about 2+ HTTP hits to s3 which is both expensive and unnecessary.
Just write a some rubyzip code that moves the templates from a zip
file into the DB. that's what Shopify does.
Regards
-- tobi
> --
>
> You received this message because you are subscribed to the Google Groups "Liquid Templates" group.
> To post to this group, send email to liquid-t...@googlegroups.com.
> To unsubscribe from this group, send email to liquid-templat...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liquid-templates?hl=en.
>
>
>
Simply look at the source of the LocalFileSystem partial
implementation and replace it with your own. That's kind of the point
behind an assignable filesystem.
Also, you want to store your templates in the DB not in S3. S3 is kind
of crazy for this as it means every hit to your webapp will generate
about 2+ HTTP hits to s3 which is both expensive and unnecessary.
Just write a some rubyzip code that moves the templates from a zip
file into the DB. that's what Shopify does.