include parameters supported?
See original GitHub issuei’m considering a switch from swig to nunjucks and have been reading if all my requirements are covered. one thing though, can i use parameters with include?
like with swig i can use this;
{% set parameters = {'contentType': 'tournament'} %}
{% include "../common/editor/content.htm" with parameters only %}
and then in content.htm can reference it
{{ contentType }}
is this possible with nujucks as the documentation doesn’t mention about it? http://mozilla.github.io/nunjucks/templating.html#include
Issue Analytics
- State:
- Created 9 years ago
- Reactions:8
- Comments:24 (8 by maintainers)
Top Results From Across the Web
Use parameters to ask for input when running a query
Parameter A parameter is a piece of information you supply to a query right as you run it. Parameters can be used by...
Read more >Parameters - AWS CloudFormation
Supported AWS-specific parameter types. AWS CloudFormation supports the following AWS-specific types: AWS::EC2::AvailabilityZone::Name. An Availability ...
Read more >Parameters | Query and analyze data - Mode Support
Use parameters to make reports more scalable, re-usable and interactive by allowing viewers to modify the data returned by a report without modifying...
Read more >Add parameters - Android Developers
Parameters are the changeable aspects of a UI Package. The Relay workflow supports two types of parameters: content parameters and interaction ...
Read more >4 Adding Parameters and Lists of Values
Adding parameters to a data model enables users to interact with data when they view reports. Oracle BI Publisher supports the following parameter...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This feature will be very helpful for rendering similar information from different datasources. For example we may have a template to render a list of articles:
and then use this as include for following:
Plus one for
with properties
statement. It will really help to migrate from Twig.