• last updated 15 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Modernize javascript idiom

Allow to specify javascrit event handlers at the tcl level using CSS query selectors

Add missing substitution

Added support for streaming HTML + javascript body procs

Previously, the API for bodyscripts (e.g. template::add_body_script,

template::add_event_listener, template::add_body_handler,

template::add_script with the right flags) was not usable for

streaming HTML pages, since the full processing of such scripts was

handled in blank-master.{tcl,adp}, which is not in use for streaming

HTML.

Now the function template::collect_body_scripts was added, which can

be used at arbitrary time to collect the body scripts and translate

those to HTML. This function can be used in streaming mode to output

these function when new HTML chunks become available.

  1. … 3 more files in changeset.
template::set_css_property: support flag "-querySelector" (in addition to the leass powerful "-class")

white-space changes

  1. … 2 more files in changeset.
internationalize confirm message

  1. … 3 more files in changeset.
template::set_css_propert: generalize function

template::hide: new API function to hide certain CSS classes via javascript

support registration of csp rules for URNs

  1. … 1 more file in changeset.
check, if container resource is really loaded

fix typo in variable name

use same spelling for "i.e." as everywhere else

  1. … 1 more file in changeset.
reduce verbosity

replace hardcoded /tmp by API function [ad_tmpdir]

  1. … 10 more files in changeset.
fix for issue #3400

template::add_event_listener: use more compact form in most simple cases

template::add_event_listener: added documentation of flags "usecapture" and "preventdefault"

revert "-version" change since

- appending the version to the URL is a hack, not compatible with other versioning approaches

- it is not compatible with resource URNs,

- a more complex version managemnt is needed when dealing with

multiple versions in an installation.

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)