• last updated 10 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
finish uncomplete sentence in documentation

Rework variable assignment (set -> lassign) + Whitespace changes

Rework variable assignment (set -> lassign) + Whitespace changes

Fix typos + Whitespace changes

Rework variable assigning loops (set -> lassign)

  1. … 3 more files in changeset.
Rework variable assignment (set -> lassign)

  1. … 1 more file in changeset.
Rework variable assigning loops (set -> lassign)

  1. … 2 more files in changeset.
fix typos

  1. … 7 more files in changeset.
note an idea such it is not forgotten

Prefer 'in' and 'ni' operators over lsearch for testing list containment

  1. … 3 more files in changeset.
Prefer lappend over concat for appending lists (lappend modifies the variable 'in place')

  1. … 1 more file in changeset.
remove conditions, which are always true

  1. … 3 more files in changeset.
remove conditiions, whiich are always true

Prefer lappend over concat for appending lists (lappend modifies the variable 'in place')

modernize tcl

  1. … 3 more files in changeset.
Performance: prefer lset over lreplace for modifying list values.

When a list element is modified, lset does it "in place", modifying the

variable itself, while lreplace works with values and returns a second copy

of the list with the modified elements, creating some unnecessary overhead.

On my local tests, this particular operation was around 30% faster.

More details: http://wiki.tcl.tk/1485 and http://wiki.tcl.tk/2556

Fix typo

Fix typos

  1. … 33 more files in changeset.
Fix typos

fix typo

Fix typos

  1. … 5 more files in changeset.
Fix typos

  1. … 61 more files in changeset.
Fix typos

  1. … 42 more files in changeset.
Fix typos

  1. … 28 more files in changeset.
fix typos

  1. … 3 more files in changeset.
Fix even more typos

  1. … 26 more files in changeset.
Reduce verbosity at runtime

Extend API to allow registration for URNs.

URNs provide an abstraction and a single place for e.g updating

references to external resources when switching between a CDN and a

local resource, or when a resource should be updated. Instead of

adding e.g. a CDN url via tempate::head::add_script, one can add an

URN and control its content from a single place.

Example:

template::register_urn \

-urn urn:ad:js:jquery \

-resource /resources/xowiki/jquery/jquery.min.js

  1. … 1 more file in changeset.
Provide developer with the option to declare compound resources (CSS

or JavaScript) to optimize performance or to provide customized

themes. New public function:

template::head::includes -container .. -parts ...

if an included resource is encountered during rendering of the page,

it is ignored. The compound resource management is aligned resource

flushing (when a compound resource is flushed, it stop shadowing

potentially other resources. An additional option could be to

add an "-parts" flag to add_link/add_script.

added simple regression test for basic functionality

    • -0
    • +49
    ./test/head-test-procs.tcl
New functions for improved theming

template::head::flush_link -href ... -rel ...

template::head::flush_script -src

These functions are the inverse functions of template::head::add_link

and template::head::add_script. These functions are required in

situations where e.g. different subsites with different themes have

different requirements for a style file provide by some application

package.