项目作者: pytipr

项目描述 :
The Python Template In-Place Replacer
高级语言: Python
项目地址: git://github.com/pytipr/pytipr.git
创建时间: 2017-01-28T19:17:42Z
项目社区:https://github.com/pytipr/pytipr

开源协议:

下载


pytipr

The Python Template In-Place Replacer

Chat Room
Build Status
Coverage Status

Example

Input:

  1. ## user comment 1
  2. user code 1
  3. ## tipr_code_start
  4. ## tipr_result_is="foo"
  5. ## tipr_code_end
  6. ## tipr_result_start
  7. ## tipr_result_end
  8. ## user comment 2
  9. user code 2

Output (note the foo) line:

  1. ## user comment 1
  2. user code 1
  3. ## tipr_code_start
  4. ## tipr_result_is="foo"
  5. ## tipr_code_end
  6. ## tipr_result_start
  7. foo
  8. ## tipr_result_end
  9. ## user comment 2
  10. user code 2