• last updated 30 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
fix typos

  1. … 7 more files in changeset.
fix typos

  1. … 1 more file in changeset.
Fix typos

  1. … 10 more files in changeset.
Fix typos

    • -2
    • +2
    ./www/doc/exercise/ats-for-designers.adp
    • -1
    • +1
    ./www/doc/exercise/ats-for-designers.html
  1. … 30 more files in changeset.
Fix typos

  1. … 9 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. … 2 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

Fix typos

  1. … 33 more files in changeset.
fix typos

    • -1
    • +1
    ./www/scripts/xinha/insert-file-orig.adp
Fix typos

Fix typos

  1. … 15 more files in changeset.
fix typo

Fix typos

  1. … 5 more files in changeset.
Fix typos

  1. … 57 more files in changeset.
Fix typos

  1. … 40 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. … 24 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

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
    ./tcl/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.