You are here

files.html.twig in Bamboo Twig 8

<div class="test-files">

  <!-- Extension Guesser -->
  <h2>Extension Guesser</h2>
  <hr>
  <div class="ext-guesser">
    {{ 'application/pdf'|extension_guesser }}
  </div>

  <!-- Theme URL -->
  <h2>Theme URL</h2>
  <hr>
  <div class="theme-url">
    {{ theme_url('stable', 'images/color/hook.png') }}
  </div>

</div>

File

tests/bamboo_twig_test/templates/files.html.twig
View source
  1. <div class="test-files">
  2. <!-- Extension Guesser -->
  3. <h2>Extension Guesser</h2>
  4. <hr>
  5. <div class="ext-guesser">
  6. {{ 'application/pdf'|extension_guesser }}
  7. </div>
  8. <!-- Theme URL -->
  9. <h2>Theme URL</h2>
  10. <hr>
  11. <div class="theme-url">
  12. {{ theme_url('stable', 'images/color/hook.png') }}
  13. </div>
  14. </div>