description.html.twig

Default theme implementation for the JavaScript Example module's description.

File

modules/js_example/templates/description.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the JavaScript Example module's description.
  5. */
  6. #}
  7. {% set js_colors = path('js_example.colors') %}
  8. {% set js_accordion = path('js_example.accordion') %}
  9. {% trans %}
  10. <p>Drupal includes jQuery and jQuery UI.</p>
  11. <p>We have two examples of using these:</p>
  12. <ol>
  13. <li>
  14. <p><a href={{ js_accordion }}>An accordion-style section reveal effect</a>:
  15. This demonstrates calling a JavaScript function using Drupal rendering
  16. system.
  17. </li>
  18. <li>
  19. <p><a href={{ js_colors }}>Sorting according to numeric weight</a>: This
  20. demonstrates attaching your own JavaScript code to individual page
  21. elements using Drupal rendering system.</p>
  22. </li>
  23. </ol>
  24. {% endtrans %}