Skip to content

Support for Configure root at render time #909

Description

@handylib

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 ?.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions