Hello, We are working on a project where we host multiple webistes with own dedicate themes. liquidjs has helped us a lot. Right now we are creating new liquid instance for each website. I want to know do we have option to override / change root at render time ? for example
global_engines['example.com'] = new Liquid({
extname: '.liquid',
root : './theme-1/templates',
partials : './theme-1/partials',
layouts : './theme-1/layouts'
});
var html = await global_engines['example.com'].renderFile('home',{title : "Home Page"});
But its not memory efficiant. i wanned to know if there is a way to use single engine istance to render multiple themes while saying isolated contexts and files ?.
Hello, We are working on a project where we host multiple webistes with own dedicate themes. liquidjs has helped us a lot. Right now we are creating new liquid instance for each website. I want to know do we have option to override / change root at render time ? for example
But its not memory efficiant. i wanned to know if there is a way to use single engine istance to render multiple themes while saying isolated contexts and files ?.