Pug mixins for the outputting of the Handlebars code instead of plain HTML.
npm i handlebars-by-pug -D -E
dl
dt.MemberProfile-Profile-KeyCell Full Name
dd.MemberProfile-Profile-ValueCell {{ fullName }}
+HandlebarsCondition("phoneNumber")
dt.MemberProfile-Profile-KeyCell Phone number
dd.MemberProfile-Profile-ValueCell {{ phoneNumber }}
Output (manually formatted):
+HandlebarsCondition("items")
ul
+HandlebarsIteration("items")
li {{ this }}
Output (manually formatted):
+HandlebarsHelper("unless", "license")
p WARNING: This entry does not have a license!
Output (manually formatted):
npm i @yamato-daiwa/handlebars-extensions -E
dl
dt Full Name
dd {{ fullName }}
+HandlebarsHelper("isNonEmptyObject", "socialNetworkProfilesURIs")
dt Social networks
dd
ul
+HandlebarsIteration("socialNetworkProfilesURIs")
li
+AreStringsEqual--HandlebarsHelper("@key", "facebook")
a(href=`{{ this }}`)
svg
// The SVG code of teh Facebook icon ...
+AreStringsEqual--HandlebarsHelper("@key", "instagram")
a(href=`{{ this }}`)
svg
// The SVG code of teh Instagram icon ...
+AreStringsEqual--HandlebarsHelper("@key", "twitter")
a(href=`{{ this }}`)
svg
// The SVG code of teh Twitter icon ...
Output (manually formatted):