Index: lib/minirivet/minirivet.tcl ================================================================== --- lib/minirivet/minirivet.tcl +++ lib/minirivet/minirivet.tcl @@ -24,29 +24,33 @@ append $::minirivet::_outputVariable $string } return } -proc ::minirivet::parseStringToCode {string} { +proc ::minirivet::parseStringToCode {string {outputCommand ""}} { + if {$outputCommand eq ""} { + set outputCommand [list ::minirivet::_emitOutput] + } + set code "" while {$string ne ""} { set endIndex [string first "" $string] if {$endIndex == -1} { set endIndex [expr {[string length $string] + 1}] } set work [string range $string 0 2] if {$work eq "