copier

Resource

资源 组织 类型
copier copier-org 模板生成器

copier

copier 是一个模板生成器,可以生成任意类型的模板.

使用

1
2
3
4
pipx install copier

copier copy <template> <output>
copier update

jinja

-%]%]

%][%确保保留这些前后额外的空白字符 ,-%][%-确保在渲染结果中不会出现额外的空白字符。

  • [%- endif %] 表示在endif标记之前删除任何尾随的空格和换行符。

  • [% endif -%] 表示在endif标记之后删除任何尾随的空格和换行符。

  • [% endif %] 不会删除尾随的空格和换行符。

include

在jinja中使用include拆分成多个模板,方便复用替换

links:

收集的模板

links: