diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-10-03 10:34:06 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-10-03 10:34:06 +0300 |
commit | 6b00e6cc829602cec7e6b6b73f94febd28bfa9a3 (patch) | |
tree | e5a3eaa479c6092fffa0e2367f14e5318a463572 /jtlib/plugins/new_person_plugin.py | |
parent | e8d1f422888d1ea4d703b446cf732331d0fff116 (diff) | |
download | jt-6b00e6cc829602cec7e6b6b73f94febd28bfa9a3.tar.gz |
Move template texts into files
Diffstat (limited to 'jtlib/plugins/new_person_plugin.py')
-rw-r--r-- | jtlib/plugins/new_person_plugin.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/jtlib/plugins/new_person_plugin.py b/jtlib/plugins/new_person_plugin.py index 43db172..050e97a 100644 --- a/jtlib/plugins/new_person_plugin.py +++ b/jtlib/plugins/new_person_plugin.py @@ -53,12 +53,7 @@ class NewPersonCommand(cliapp.Plugin): if os.path.exists(pathname): raise cliapp.AppException('File %s already exists' % pathname) - template = '''\ -[[!meta title="%(name)s"]] - -[[!inline archive=yes pages="link(.)"]] -''' - + template = self.app.read_template('new_person.tmpl') with open(pathname, 'w') as f: f.write( template % |