diff --git a/src/decktemplates/vendor/punk/layout_refs/project@vendor+punk+project-0.1.ref b/src/decktemplates/custom/_project/layout_refs/@custom+_project+punk.project-0.1.ref similarity index 100% rename from src/decktemplates/vendor/punk/layout_refs/project@vendor+punk+project-0.1.ref rename to src/decktemplates/custom/_project/layout_refs/@custom+_project+punk.project-0.1.ref diff --git a/src/decktemplates/custom/punk/modules/template_cli-0.0.1.tm b/src/decktemplates/custom/punk/modules/template_cli-0.0.1.tm index 52d25a43..7f64a230 100644 --- a/src/decktemplates/custom/punk/modules/template_cli-0.0.1.tm +++ b/src/decktemplates/custom/punk/modules/template_cli-0.0.1.tm @@ -43,7 +43,7 @@ #[para] packages used by %pkg% #[list_begin itemized] -package require Tcl 8.6 +package require Tcl 8.6- package require punk::overlay package require punk::mix::base package require punk::mix::util @@ -61,6 +61,7 @@ package require punk::mix::util #[list_end] namespace eval %pkg% { + namespace export {[a-z]*} ;# Convention: export all lowercase namespace ensemble create #package require punk::overlay #punk::overlay::import_commandset debug . ::punk:mix::commandset::debug @@ -80,6 +81,7 @@ namespace eval %pkg% { # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ namespace eval %pkg%::lib { + namespace export {[a-z]*} ;# Convention: export all lowercase namespace path ::punk::mix::util ;#askuser, do_in_path, foreach-file etc } diff --git a/src/decktemplates/vendor/_project/modules/template_anyname-0.0.2.tm b/src/decktemplates/vendor/_project/modules/template_anyname-0.0.2.tm index 4bca651b..ebe02b69 100644 --- a/src/decktemplates/vendor/_project/modules/template_anyname-0.0.2.tm +++ b/src/decktemplates/vendor/_project/modules/template_anyname-0.0.2.tm @@ -27,6 +27,7 @@ apply {code { #auto determine package name and version from name and placement o namespace eval $pkgns [string map [list $pkgns $ver] $code] package provide $pkgns $ver;# only provide package if code evaluated without error } ::} { + namespace export {[a-z]*} ;# Convention: export all lowercase #-------------------------------------- variable pkg "" variable version "" @@ -39,8 +40,8 @@ apply {code { #auto determine package name and version from name and placement o #proc test {args} {puts "[namespace current]::test got args: $args"} - namespace eval [namespace current]::lib { + namespace export {[a-z]*} ;# Convention: export all lowercase #proc test {args} {puts "[namespace current]::test got args: $args"} } diff --git a/src/decktemplates/vendor/punk/layout_refs/project@vendor+punk+project-0.1.refXXX b/src/decktemplates/vendor/punk/layout_refs/project@vendor+punk+project-0.1.refXXX new file mode 100644 index 00000000..e69de29b diff --git a/src/decktemplates/vendor/punk/modules/nodoc/template_anyname-0.0.2.tm b/src/decktemplates/vendor/punk/modules/nodoc/template_anyname-0.0.2.tm index 4bca651b..a099f0fe 100644 --- a/src/decktemplates/vendor/punk/modules/nodoc/template_anyname-0.0.2.tm +++ b/src/decktemplates/vendor/punk/modules/nodoc/template_anyname-0.0.2.tm @@ -27,6 +27,7 @@ apply {code { #auto determine package name and version from name and placement o namespace eval $pkgns [string map [list $pkgns $ver] $code] package provide $pkgns $ver;# only provide package if code evaluated without error } ::} { + namespace export {[a-z]*} ;# Convention: export all lowercase #-------------------------------------- variable pkg "" variable version "" @@ -41,6 +42,7 @@ apply {code { #auto determine package name and version from name and placement o namespace eval [namespace current]::lib { + namespace export {[a-z]*} ;# Convention: export all lowercase #proc test {args} {puts "[namespace current]::test got args: $args"} } diff --git a/src/decktemplates/vendor/punk/modules/template_cli-0.0.1.tm b/src/decktemplates/vendor/punk/modules/template_cli-0.0.1.tm index 4c2fad08..613debb9 100644 --- a/src/decktemplates/vendor/punk/modules/template_cli-0.0.1.tm +++ b/src/decktemplates/vendor/punk/modules/template_cli-0.0.1.tm @@ -42,7 +42,7 @@ #[para] packages used by %pkg% #[list_begin itemized] -package require Tcl 8.6 +package require Tcl 8.6- package require punk::overlay package require punk::mix::base package require punk::mix::util @@ -60,6 +60,7 @@ package require punk::mix::util #[list_end] namespace eval %pkg% { + namespace export {[a-z]*} ;# Convention: export all lowercase namespace ensemble create #package require punk::overlay #punk::overlay::import_commandset debug . ::punk:mix::commandset::debug @@ -79,6 +80,7 @@ namespace eval %pkg% { # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ namespace eval %pkg%::lib { + namespace export {[a-z]*} ;# Convention: export all lowercase namespace path ::punk::mix::util ;#askuser, do_in_path, foreach-file etc } diff --git a/src/decktemplates/vendor/punk/modules/template_module-0.0.1.tm b/src/decktemplates/vendor/punk/modules/template_module-0.0.1.tm index 3e44c9ff..8dd75f63 100644 --- a/src/decktemplates/vendor/punk/modules/template_module-0.0.1.tm +++ b/src/decktemplates/vendor/punk/modules/template_module-0.0.1.tm @@ -44,7 +44,7 @@ #[para] packages used by %pkg% #[list_begin itemized] -package require Tcl 8.6 +package require Tcl 8.6- #*** !doctools #[item] [package {Tcl 8.6}] @@ -97,7 +97,7 @@ namespace eval %pkg%::class { # Base namespace # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ namespace eval %pkg% { - namespace export * + namespace export {[a-z]*} ;# Convention: export all lowercase #variable xyz #*** !doctools @@ -127,7 +127,7 @@ namespace eval %pkg% { # Secondary API namespace # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ namespace eval %pkg%::lib { - namespace export * + namespace export {[a-z]*} ;# Convention: export all lowercase namespace path [namespace parent] #*** !doctools #[subsection {Namespace %pkg%::lib}] diff --git a/src/decktemplates/vendor/punk/modules/template_module-0.0.2.tm b/src/decktemplates/vendor/punk/modules/template_module-0.0.2.tm index f8f01847..716c06d0 100644 --- a/src/decktemplates/vendor/punk/modules/template_module-0.0.2.tm +++ b/src/decktemplates/vendor/punk/modules/template_module-0.0.2.tm @@ -45,7 +45,7 @@ #[para] packages used by %pkg% #[list_begin itemized] -package require Tcl 8.6 +package require Tcl 8.6- #*** !doctools #[item] [package {Tcl 8.6}] @@ -98,7 +98,7 @@ namespace eval %pkg%::class { # Base namespace # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ namespace eval %pkg% { - namespace export * + namespace export {[a-z]*} ;# Convention: export all lowercase #variable xyz #*** !doctools @@ -133,7 +133,7 @@ namespace eval %pkg% { # Secondary API namespace # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ namespace eval %pkg%::lib { - namespace export * + namespace export {[a-z]*} ;# Convention: export all lowercase namespace path [namespace parent] #*** !doctools #[subsection {Namespace %pkg%::lib}]