Skip to content

Rhys Williams

PUG: Inlining tags

Posted byrrrhys October 28, 2020October 28, 2020

One of those easy-to-forget and hard-to-google things is inlining tags with pug.

template(#modal-title)
        | Edit #[i {{editingMenuItem.menuItem.name}} ]

Outputs “<p>Edit <i>text</i></p>

Posted byrrrhysOctober 28, 2020October 28, 2020Posted inUncategorized

Post navigation

Previous Post Previous post:
Properly adding v-model support to a component (vue.js)
Next Post Next post:
Firebase – searching where string starts with

Recent Posts

  • usePollingUpdate – React Hook for polling on interval
  • UseCallback Debounce
  • Overnight Hike Packing Checklist
  • Micro-Saas – building framework
  • Making stuff pt 2 – Recustom SMS app

Archives

  • January 2022
  • November 2021
  • September 2021
  • August 2021
  • July 2021
  • May 2021
  • April 2021
  • March 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • July 2020
  • June 2020
  • March 2020
  • February 2020
  • November 2019
  • October 2019
  • September 2019
  • July 2019
  • April 2019
  • March 2019

Categories

  • No categories
Rhys Williams, Proudly powered by WordPress.