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

Load macros from other template files #196

Open
mikeraynham opened this issue Jan 4, 2019 · 1 comment
Open

Load macros from other template files #196

mikeraynham opened this issue Jan 4, 2019 · 1 comment

Comments

@mikeraynham
Copy link

Commit cd861dc added a question about being unable to load macros from other template files, but the earlier commit 33369ab introduced cascade components as libraries. cascade with therefore allows macros to be loaded from other template files, as shown in t/020_features/021_overlay.t from 33369ab (now t/030_kolon/021_overlay.t). t/030_kolon/040_external_macro.t skips all tests with the reason external macros are not yet implemented, but it uses import (which appears to have been a work in progress), not cascade with.

Should the documentation and tests be updated to show that template files can be used as macro libraries? I am happy to produce a patch.

@nrdvana
Copy link

nrdvana commented Jul 20, 2021

I'm looking for this same feature, but I am using TTerse syntax. It seems that TTerse does not have CASCADE, but when I use INCLUDE it does not import the macros. Is there a workaround?

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

2 participants