diff --git a/doc/TwigJS.md b/doc/TwigJS.md index 29580207..5d088d35 100644 --- a/doc/TwigJS.md +++ b/doc/TwigJS.md @@ -28,8 +28,8 @@ Assign value to variable: ``` For more information, please visit: -* [https://twig.symfony.com/](Page of the original Twig template language) -* [https://github.com/twigjs/twig.js/wiki](Wiki of the TwigJS template language which is almost identical to Twig) +* [Page of the original Twig template language](https://twig.symfony.com/) +* [Wiki of the TwigJS template language which is almost identical to Twig](https://github.com/twigjs/twig.js/wiki) #### TwigJS templates When rendering map features, the following properties are available: @@ -68,9 +68,9 @@ There are several extra functions defined for the TwigJS language: Extra filters: * filter websiteUrl: return a valid http link. Example: `{{ "www.google.com"|websiteUrl }}` -> "http://www.google.com"; `{{ "https://google.com"|websiteUrl }}` -> "https://google.com" * filter `matches`: regular expression match. e.g. `{{ "test"|matches("e(st)$") }}` returns `[ "est", "st" ]`. Returns null if it does not match. -* filter `osmParseDate`: returns an array with the lower and upper boundary of the year of a `start_date` tag. See [https://github.com/plepe/openstreetmap-date-parser](openstreetmap-date-parser) for details. -* filter `osmFormatDate`: returns the date as localized strings. Accept an object for options, e.g. `{{ tags.start_date|osmFormatDate({ format: 'short' }) }}`. See [https://github.com/plepe/openstreetmap-date-format](openstreetmap-date-format) for details. -* filter `natsort`: Sort an array naturally, see [https://www.npmjs.com/package/natsort](natsort) for details. +* filter `osmParseDate`: returns an array with the lower and upper boundary of the year of a `start_date` tag. See [openstreetmap-date-parser](https://github.com/plepe/openstreetmap-date-parser) for details. +* filter `osmFormatDate`: returns the date as localized strings. Accept an object for options, e.g. `{{ tags.start_date|osmFormatDate({ format: 'short' }) }}`. See [openstreetmap-date-format](https://github.com/plepe/openstreetmap-date-format) for details. +* filter `natsort`: Sort an array naturally, see [natsort](https://www.npmjs.com/package/natsort) for details. * filter `ksort`: Sort an associative array by key (alphabetic) * filter `unique`: Remove duplicate elements from an array. * filter `md5`: calculate md5 hash of a string.