|
Boost-Commit : |
From: srajko_at_[hidden]
Date: 2007-06-14 21:42:07
Author: srajko
Date: 2007-06-14 21:42:06 EDT (Thu, 14 Jun 2007)
New Revision: 7052
URL: http://svn.boost.org/trac/boost/changeset/7052
Log:
add simple_template.py
Added:
sandbox/template_under_construction/file_template/libs/file_template/test/simple_template/simple_template.py (contents, props changed)
Added: sandbox/template_under_construction/file_template/libs/file_template/test/simple_template/simple_template.py
==============================================================================
--- (empty file)
+++ sandbox/template_under_construction/file_template/libs/file_template/test/simple_template/simple_template.py 2007-06-14 21:42:06 EDT (Thu, 14 Jun 2007)
@@ -0,0 +1,14 @@
+# template script
+
+# Copyright 2007 Stjepan Rajko.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+text = template.options.get('text', template.options.alnum_lowercase, None, '(type in "substituted"): ')
+
+template.name_replacement('$template_text$', text)
+
+template.all_content_replacement('$template_substitution$', 'substituted')
+template.content_replacement(['.txt'], '$template_text$', text + ' in txt file')
+template.content_replacement(['.xyz'], '$template_text$', text + ' in xyz file')
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk