• last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Add parameter 'version' also to 'template::head::add_javascript' and 'template::head::add_script'

Add parameter 'version' to both 'template::head::add_css' and 'template::head::flush_link', in order to add a version to certain resources, as a query parameter, to perform 'cache busting' and forcing retrieval of stale files by the browser

support Subresource Integrity (SRI) settings in template::head::add_css (crossorigin and integrity)

added: template::head::can_resolve_urn

Add URN-resover for add_body_script

improve spelling

  1. … 13 more files in changeset.
Add new utility to trigger a browser refresh when we reach a page by the browser's history

Useful e.g. for those pages implementing some server push interaction, where browser might have 'missed out' events while on another page

improve capitalization and wording in comments

  1. … 6 more files in changeset.
use capitalization consitently

make spelling more consitent

  1. … 2 more files in changeset.
improve URN registration: handle cases where the same URN is registered multiple times (prefer local over CDN, provide warnings)

Fix parameter names in proc doc

  1. … 2 more files in changeset.
improve spelling

  1. … 8 more files in changeset.
improve spelling

  1. … 7 more files in changeset.
add themeing support for templated footers

improve CSP in accordance with Google's csp-evaluator.withgoogle.com

  1. … 1 more file in changeset.
make spelling more uniform

  1. … 5 more files in changeset.
reduce verbosity

remove extra "list"

finish uncomplete sentence in documentation

Rework variable assigning loops (set -> lassign)

  1. … 3 more files in changeset.
fix typos

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

fix typos

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

  1. … 29 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

  1. … 1 more file in changeset.
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.

Bug fix: avoid confusion between command argument and option, when argument starts with "-"

  1. … 81 more files in changeset.