Comments (2)
All built-in Jinja2 functions/filters/tests, filters from jinja2-ansible-filters
(which includes regex_search
), and the function pathjoin
are available. Additional Jinja2 extensions can be registered via the _jinja_extensions
setting in copier.yml
. regex_search
is no validation method but simply a Jinja2 filter. Using grep
output isn't supported out of the box, it may be added via a custom Jinja2 extension, but I'm not sure it's a good idea because grep
may not be available on all systems and – depending on what exactly you're planning to do – validation may become non-deterministic.
from copier.
Thanks for your feedback! Would you like to open a PR to improve the docs?
I don't want to replicate docs from jinja2-ansible-filters, but a info box could help indeed.
from copier.
Related Issues (20)
- Exclude files or directories based on answers HOT 3
- Allow configuring Jinja with StrictUndefined HOT 3
- remove flake8 HOT 2
- Organization avatar cut off HOT 3
- Answers Groups HOT 1
- Be able to go back to a previous answer in the template generation questions menu HOT 2
- support zip template from local or http endpoint HOT 5
- ⚠ CRITICAL: Copier 9.1.1 broken by too loose `pyyaml-include` requirement ⚠ HOT 22
- Add support for source git-repos where the template is located in a subdirectory HOT 5
- Improved logic for `when` for handling initial questions HOT 14
- Supply official shields.io badges
- default option for choices with multiselect HOT 5
- Name collision which renders repo formally broken and causes several side effects HOT 4
- Don't consider tasks for template unsafety if they're being skipped
- AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? HOT 8
- Can't update project when copying from local template HOT 1
- Updating the project creates a new .copier-answer.yml file HOT 3
- Conditional exclude items HOT 9
- Provide a way to integrate with nix templates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copier.