Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Include and extend file discover not relative to current file #1

Open
mrcljx opened this issue Jul 22, 2013 · 0 comments
Open

Include and extend file discover not relative to current file #1

mrcljx opened this issue Jul 22, 2013 · 0 comments

Comments

@mrcljx
Copy link
Owner

mrcljx commented Jul 22, 2013

Currently all includes and extends must be relative to the initial liquid-template (see https://github.com/sirlantis/grunt-liquid/blob/master/tasks/liquid.js#L44-L46).

So if you have index.liquid extending layouts/default.liquid and layouts/default.liquid includes head.liquid the folder structure must look like this (except the subfolder)

  • index.liquid
  • head.liquid
  • layouts/
    • default.liquid
  • subfolder/
    • index.liquid

If you render subfolder/index.liquid, index.liquid would have to include ../layouts/default.liquid which then would fail to include head.liquid (which would be expected at subfolder/head.liquid).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant