Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. {% for block in entry.menuBuilder %}
  2. {% switch block.type %}
  3. {% case 'menuItem' %}
  4.  
  5. <ul>
  6. <li>
  7. <h2>{{ block.dishName }}</h2>
  8. <p>{{ block.dishDescription }}</p>
  9. <p>{{ block.dishPrice }}</p>
  10. </li>
  11. </ul>
  12.  
  13. {% case 'subHeading' %}
  14.  
  15. <header>
  16. <h2>{{ block.heading }}</h2>
  17. </header>
  18.  
  19. {% endswitch %}
  20. {% endfor %}
  21.  
  22. <ul>
  23. <li>
  24. <h2>Name</h2>
  25. <p>Description</p>
  26. <p>Price</p>
  27. </li>
  28. </ul>
  29.  
  30. <ul>
  31. <li>
  32. <h2>Name</h2>
  33. <p>Description</p>
  34. <p>Price</p>
  35. </li>
  36. </ul>
  37.  
  38. <ul>
  39. <li>
  40. <h2>Name</h2>
  41. <p>Description</p>
  42. <p>Price</p>
  43. </li>
  44. </ul> ... etc
  45.  
  46. <ul>
  47. <li>
  48. <h2>Name</h2>
  49. <p>Description</p>
  50. <p>Price</p>
  51. </li>
  52. <li>
  53. <h2>Name</h2>
  54. <p>Description</p>
  55. <p>Price</p>
  56. </li>
  57. <li>
  58. <h2>Name</h2>
  59. <p>Description</p>
  60. <p>Price</p>
  61. </li>
  62. </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement