![]() ![]() +row("Email", "data.email")(ngbindhtml="getTrusted(data.email)" ngShow="data.email & data.email != ''")īut at this point, its barely a template and I might as well just copy and paste, since I am already writing all the attributes for each row out separately even though they could be vastly simplified if I could just use string interpolation within attributes inside a pug mixin. +row("Telephone", "data.telephone")(ngbindhtml="getTrusted(data.telephone)" ngShow="data.telephone & data.telephone != ''") +row("Registration", "data.registration")(ngShow="data.registration & data.registration != ''") +row("Donation", "data.donation")(ngShow="data.donation & data.donation != ''") ![]() +row("Check-in", "data.checkin")(ngShow="data.checkin & data.checkin != ''") ![]() +row("Accommodation", "data.accommodation")(ngShow="data.accommodation & data.accommodation != ''") If you were to do output the escaped variable ( var user. It's also necessary to output the raw contents of the variable, instead of the evaluated form of it. all the information about a user), you must stringify the output in Pug for it to be treated as a JavaScript object. +row("Venue", "data.venue")(ngShow="data.venue & data.venue != ''") If you need to interpolate the value of a JavaScript object (e.g. Span(class="preserve-newlines" ng-bind-html!=attributes.ngbindhtml)= "" ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |