Questions tagged [html-templates]

Add a template element to your document with children defining your template (including optional `slot` elements to be used with the shadow DOM) and then, as needed, copy its `content` and apply.

The HTML template element can be used for content that is not rendered by default but can be instantiated during run-time. It can have <slot> children which define a pattern for a resulting "flattened DOM tree" (when the template is added as the shadow DOM content of an element potentially with its own children). It is often used within Custom Elements and/or Shadow DOM, but this is not required.

122 questions
0
votes
1 answer

How to populate a table in a HTML xml template

I am working on a task where I need to add tables of data to our email templates. I am working with a Scala backend, and using Velocity to add the context to our emails. This table has 3 columns for 3 different work types: In-office, working…
TreyBCollier
  • 213
  • 3
  • 8
0
votes
1 answer

Error using Template HTML in Custom Dialog Box: "We're sorry, a server error occurred. Please wait a bit and try again"

I'm trying to add to a sheet a custom dialog box created from HTML template, and nothing I do has any outcome but this error: "We're sorry, a server error occurred. Please wait a bit and try again." To eliminate all chances of error on my part, or…
0
votes
1 answer

Javascript loop for HTML template

I am building a list of items using a single JSON where several items have a common key:value pair and are sorted and clubbed together. The need is to make a header above the clubbed section using the common valued key-value pair. And then wrap the…
Nitin Suri
  • 960
  • 1
  • 8
  • 20
0
votes
1 answer

Can I build a basic website to access my resume but slowly customize it using python to learn and showcase my skills?

I"m not entirely certain what I'm trying to do is doable. I want a ready made website that I can make live fairly quick but later modify it with python code. I have basic python knowledge and used it, as well as SQL regularly as a BSA at a past…
Whovian
  • 15
  • 2
0
votes
1 answer

Disadvantage of building a custom element within the constructor?

I understand the advantages of templates in terms of performance when designing custom elements, but for structures which are only used in one element I am struggling to understand the disadvantage of building the html within the constructor() of…
0
votes
1 answer

Reference Error: Using a For-Loop to create & send Emails from HTML Template in Google Apps Scripts

Hi, I'm relatively new to javascript, google apps scripts, & coding in general. I'm currently working in the Google Apps Script [g-script] environment w/ google sheets [g-sheet]. Here's what I'm trying to accomplish: Use a g-sheet to store a data…
0
votes
1 answer

HTML Template Shadow DOM not rendering within Handlebars template

I have a Handlebars.js template with a HTML template to create Declarative Shadow DOM inside (required due to large content in actual case):