Support dynamic values for webc:import
component imports
#148
Labels
enhancement
New feature or request
webc:import
component imports
#148
Summary
WebC's
webc:import
attribute currently supports static strings, like:It would be extremely helpful if it also supported dynamic values — ex., paths constructed using values in the data cascade.
Example
Building on WebC's existing
:
-prefixed syntax for dynamic attributes, a dynamic import might use:webc:import
:Usage
We make heavy use of Nunjucks's support for dynamically
include
-ing templates andimport
-ing macros when building pages from user-defined data in a CMS.The text was updated successfully, but these errors were encountered: