ILyaCyclone

freemarker lib.html 2018.11.21

Nov 21st, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.00 KB | None | 0 0
  1. <#macro optAttribute attribute value="">
  2. <#if value?has_content>${attribute}="${value}"</#if>
  3. </#macro>
  4.  
  5. <#macro svgUse cssClass spriteUrl symbolId>
  6. <svg <@optAttribute "class" cssClass/>>
  7. <use xlink:href="${spriteUrl}#${symbolId}"></use>
  8. </svg>
  9. </#macro>
  10.  
  11. <#macro svgUseObject svgIcon>
  12. <@svgUse svgIcon.cssClass!"" svgIcon.spriteUrl svgIcon.symbolId />
  13. </#macro>
  14.  
  15.  
  16. <#macro flexOrder xs="" sm="" md="" lg="" xl="">
  17. <#if xs?has_content>order-${xs}</#if> <#if sm?has_content>order-sm-${sm}</#if> <#if md?has_content>order-md-${md}</#if> <#if lg?has_content>order-lg-${lg}</#if> <#if xl?has_content>order-xl-${xl}</#if>
  18. </#macro>
  19.  
  20.  
  21. <#macro a href="javascript:void(0);" id="" class="" target="" title="">
  22. <a href="${href}" <@optAttribute "id" id/> <@optAttribute "class" class/> <@optAttribute "target" target/> <@optAttribute "title" title/> >
  23. <#nested>
  24. </a>
  25. </#macro>
  26.  
  27.  
  28. <#macro csrfInput>
  29. <#if _csrf??>
  30. <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  31. </#if>
  32. </#macro>
Add Comment
Please, Sign In to add comment