nitter/src/views/opensearch.nimf

14 lines
580 B
Text
Raw Normal View History

#? stdtmpl(subsChar = '$', metaChar = '#')
2021-12-27 01:43:27 +00:00
## SPDX-License-Identifier: AGPL-3.0-only
#proc generateOpenSearchXML*(name, hostname, url: string): string =
# result = ""
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>${name}</ShortName>
<Description>Twitter search via ${hostname}</Description>
<InputEncoding>UTF-8</InputEncoding>
<Url type="text/html" template="${url}{searchTerms}" />
</OpenSearchDescription>
#end proc