...
$import - This function enhances the $frontend function by adding '@import' prefix to the $frontend path. e.g.
Code Block <rewrite template="{$import[", url]}/stylesheets/pretty.css";"/>
. It takes following parameters as options:
- $import - Adds @import as a prefix to the frontend url. e.g. @import https://localhost:8443/gateway/sandbox
- $import[", url] - Adds " as prefix along with @import, the rewritten frontend url will be '@import https://localhost:8443/gateway/sandbox
$username
$username - This variable is used when we need to get the impersonated principal name (primary principal in case impersonated principal is absent).
Code Block <rewrite template="test-output-scheme://{host}:{port}/test-output-path/{path=**}?user.name={$username}?{**}?test-query-output-name=test-query-output-value"/>
$prefix
$prefix - This function enhances the $frontend function just like $import but gives the ability to choose a prefix (unlike a constant @import in case of $import) e.g.
Code Block <rewrite template="{$prefix[',url]}/zeppelin/components/{**}?{**}"/>
- $prefix[PREFIX, url] - Adds a supplied PREFIX to the frontend url, e.g. in above case the rewritten url would be 'https://localhost:8443/
zeppelin/components/navbar/navbar.html?v=1498928142479' (mind the single tick ' )
- $prefix[PREFIX, url] - Adds a supplied PREFIX to the frontend url, e.g. in above case the rewritten url would be 'https://localhost:8443/
...