Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cached templates fail on path problem #223

Open
cj-clx opened this issue Jan 29, 2020 · 2 comments
Open

Cached templates fail on path problem #223

cj-clx opened this issue Jan 29, 2020 · 2 comments

Comments

@cj-clx
Copy link

cj-clx commented Jan 29, 2020

It appears that resolving path names to files is different for cached templates than for "live" templates. When I cache working pages' templates, which are composed of a variety of partials, some in subdirectories, I get a fatal error. Example error message below:

exception: File date-range-picker.xml not found in paths (., /Users/gits/web/staging/templates)

Note that the file being requested is actually located at this path:

/Users/gits/web/staging/templates/widgets

The requesting template code looks like this:

widget {
    content: template(attr(href));
    content-mode: html;
  <widget href="widget/date-range-picker.xml"
            id="registration"></widget>
@cj-clx cj-clx closed this as completed Jan 29, 2020
@cj-clx
Copy link
Author

cj-clx commented Jan 31, 2020

I had closed this previously after finding a typo in a template that made it fail in this manner. But now I've proven via A/B testing that indeed sometimes cached templates do not find files that uncached templates are able to locate. There is a definite difference in behavior.

@cj-clx cj-clx reopened this Jan 31, 2020
@cj-clx
Copy link
Author

cj-clx commented Jan 31, 2020

Here is a current example:

Transphporm exception: File modal/get-npi.xml not found in paths (., /Users/chris/gits/user-web2/staging/templates/modal)

Somehow the searched in paths are wrong, containing the subdirectory name (/modal) already.

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

No branches or pull requests

1 participant