{if true then
wrapperfile = (parent and parent.path or '') .. '/' .. app.opts.plugin_janusxr_wrap_custom
hasWrapperfile = util.fileExist(wrapperfile) and true or false
showfediportals = app.opts.plugin_federation_strategy == 'always' or
(app.opts.plugin_federation_strategy == 'homepage' and urlpath == '/')
-- optimize janus resource URLs for archive.org
app.plugin.archive.flush()
function URL(url)
url = util.baseURLify(url)
app.plugin.archive.add(url)
return url
end
end}