Part of ACREP-32.
authorMike Taylor <mike@indexdata.com>
Fri, 26 Jun 2015 17:25:56 +0000 (18:25 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 26 Jun 2015 17:25:56 +0000 (18:25 +0100)
commit4e1cf7acd7be692d8d56bc6941b676ad51a71bfa
tree74a0244376d3a705335456be2b9d363669611d8a
parent06c6052959307f4f9e7b2c6607109b58b28ba1da
Part of ACREP-32.

Provide new Handlebars helper mkws-best-url, which returns the first
item in a list that matches a regular-expression suggesting that it's
a URL (basically anything that starts with http://, https:// or //).

Also provide mkws-other-urls (not yet tested), which returns all the
other URLs in the list except the first.
src/mkws-handlebars.js