
templates.vuetify.common.ftl Maven / Gradle / Ivy
The newest version!
<#--
Copyright (c) 2019 Oracle and/or its affiliates.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<#macro renderLink link>
<#-- macro arguments cannot be null, anything else than hash is treated as null -->
<#if link?is_hash>
<#switch link.type>
<#case "xref_anchor_self">
<#-- link to an anchor on the same page -->
<#--noinspection HtmlUnknownTag-->
rel="${link.rel}"#if><#if link.role??> class="${link.role}"#if>><#nested>
<#break>
<#case "xref_anchor">
<#-- link to an anchor on a different page -->
<#--noinspection HtmlUnknownTag-->
rel="${link.rel}"#if><#if link.role??> class="${link.role}"#if>><#nested>
<#break>
<#case "xref">
<#-- link to a page -->
<#--noinspection HtmlUnknownTag-->
rel="${link.rel}"#if><#if link.role??> class="${link.role}"#if>><#nested>
<#break>
<#case "ref">
<#-- link to an external page -->
rel="${link.rel}"#if><#if link.role??> class="${link.role}"#if>><#nested>
<#break>
<#case "bibref">
<#-- anchor -->
rel="${link.rel}"#if><#if link.role??> class="${link.role}"#if>><#nested>
<#break>
<#default>
title="${link.title}"#if><#if link.window??> target="${link.window}"#if> href="${link.target}"<#if link.rel??> rel="${link.rel}"#if><#if link.role??> class="${link.role}"#if>><#nested>
#switch>
#if>
#macro>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy