substify - Text expander for later use in subst command
TABLE OF CONTENTS
SYNOPSIS
DESCRIPTION
COMMAND
EXAMPLES
SEE ALSO
KEYWORDS
COPYRIGHT
package require Tcl 8.4
package require substify::substify ?1.0?
|
This package allows parsing templates that include Tcl code embedded inside non-Tcl information.
The behavior is similar to textutil::expander, but the purpose is that it is converted once and can then be passed to subst multiple times.
# small substify example
package require substify
puts [subst [substify::substify {1 + 1 = <%expr {1+1}%>.
Platform is <%=$tcl_platform(platform)%>.} "<%" "%>"]]
1 + 1 = 2.
Platform is windows.
|
substify_browser, substify_configgui
log, substify
Copyright © 2006 Wojciech Kocjan <wojciech.kocjan@dq.pl>