tp.config
此模块配置Templater
程序的运行配置。
这个模块主要是编写程序逻辑判断脚本非常有用。
tp.confgi.active.file?
启动Templater
激活文件file
tp.config.run_mode
运行模式,表示Templater
程序的启动方式(从模板新建、追加到活动文件等).
tp.config.target_file
表示模板文件中插入的目标文件。
tp.file.template_file
表示使用的哪个 template file .