react-native-navigation的迁移库

link.hbs 604B

12345678910111213141516171819202122232425
  1. {{! usage: link to="namepath" html=true/false caption="optional caption"~}}
  2. {{~#if html~}}
  3. <code>
  4. {{~#link to~}}
  5. {{#if url~}}
  6. <a href="{{{url}}}">{{#if ../../caption}}{{../../../caption}}{{else}}{{name}}{{/if}}</a>
  7. {{~else~}}
  8. {{#if ../../caption}}{{../../../caption}}{{else}}{{name}}{{/if~}}
  9. {{/if~}}
  10. {{/link~}}
  11. </code>
  12. {{~else~}}
  13. {{#link to~}}
  14. {{#if url~}}
  15. [<code>{{#if ../../caption}}{{escape ../../../caption}}{{else}}{{escape name}}{{/if}}</code>]({{{url}}})
  16. {{~else~}}
  17. {{#if ../../caption}}<code>{{escape ../../../caption}}</code>{{else}}{{{linkify name}}}{{/if~}}
  18. {{~/if~}}
  19. {{/link~}}
  20. {{/if~}}