![]() ![]() Option and the args determine the exact behavior of the command. The command has the following general form: If the expanderName is not fully qualified it is interpreted as relative to This command may be used to invoke various operations on the The command creates a new expander object with an associated Tcl command whose name Section is taken by a description of the methods for the expander objects created by this The textutil::expander package provides only one command, described below. The following section describes the command API to the expander this is followed by the There's no easy way to handle incremental input, as one might wish to do whenĪt present, expander solves the first two problems eventually it will solve the third.Include a large quantity of Tcl code examples might easily prefer to use > To choose different brackets in special cases. ![]() Embedded commands are necessarily bracketed by it's convenient to be able.There's no way to identify and process the plain text between two embedded TclĬommands that makes it difficult to handle plain text in a context-sensitive way.The subst command is efficient, but it has three drawbacks for this kind of template String with embedded variables or function calls, subst will interpolate the variable andįunction values, returning the new string:īy defining a suitable set of Tcl commands, subst can be used to implement a markup ![]() The Tcl subst command is often used to support a kind of template processing. Package require textutil::expander ?1.3.1? ::textutil::expander expanderName expanderName cappend text expanderName cget varname expanderName cis cname expanderName cname expanderName cpop cname expanderName ctopandclear expanderName cpush cname expanderName cset varname value expanderName cvar varname expanderName errmode newErrmode expanderName evalcmd ? newEvalCmd?ĮxpanderName reset expanderName setbrackets lbrack rbrack expanderName textcmd ? newTextCmd? Textutil::expander - Procedures to process templates and expand text. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |