liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Question / Feature: Different filesystems

Open directionless opened this issue 4 years ago • 1 comments

(Hi! This is somewhere between a question and a feature request. I hope that's okay)

I have a ruby app, and we use Liquid for template handling. (Thanks!)

I've now found that I want to support something like partials in my templates. But, I want to use different partials for different templates. I'm trying to figure out how. I think the docs suggest I do something like Liquid:: Template.file_system = ..., but from what I can tell, that's a global.

Is there a way to do that on a per template basis?

directionless avatar Dec 07 '21 03:12 directionless

Hrm. From one of the tests, it looks like I can pass registers: { file_system: OtherFileSystem }. That seems to work, but I'm not really sure if there are other effects. Or anything I lose passing this in

directionless avatar Dec 07 '21 14:12 directionless