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

why does open-wc scaffold promotes lit-html

I have worked around one year with Polymer 1 and 2 in a big company with large webcomponents catalog and I am confident webcomponents can be very usefull. I am aware about "cons ideas" like…
Jim C
  • 3,957
  • 25
  • 85
  • 162
0
votes
1 answer

How to use Custom Elements with template?

I was trying to understand how web components work so I tried to write a small app that I served on a webserver (tested on Chrome which support rel="import"): index.html:
JacopoStanchi
  • 1,962
  • 5
  • 33
  • 61
0
votes
0 answers

Programmatically Create New HTML Page based on Template and User Input

I am working on a project/idea, my use case is for my significant other's blog/craft/recipe website. I want to create a personalized service that uses Firebase to host, and I want people (like my significant other) who have no coding/html/firebase…
0
votes
1 answer

How to reuse website templates (layout/theme) in Python Django?

I'm new to web-dev, but among those simple apps I wrote in Django, there's a simple base_generic.html as the website page template, like this {% block title %}Local Library{% endblock…
avocado
  • 2,615
  • 3
  • 24
  • 43
0
votes
1 answer

Webfundamentals, CustomElement with shadowDOM and HTML Templates with HTML import

I have various questions about the webfundamentals implementations, i have read that a true web component must have shadowDOM for css encapsulation, customElements for the logic of the component which i really love, and HTML Temapltes and import, so…
0
votes
0 answers

Issues with meteor-react project

I have a started a new project using meteor-reactjs-mongodb combo. I am having a lot of issues since i am a beginner at those. 1)Initial compilation time is almost like 5 minutes. It would be my pleasure if you explain how to optimize. 2) I am…
Sandy B
  • 113
  • 1
  • 15
0
votes
2 answers

Controller class cannot find html template

My directory I'm trying to create spring boot application for school that lists books to a html page from database with a controller. Personally, i think that the problem is that the controller cannot find the template for some reason. Because…
Roni
  • 11
  • 9
0
votes
0 answers

R rhandsonetable in htmlTemplate / JqueryLayout not working

I want to create a shinyApp with a custom UI, using the htmlTemplate function from shiny and the JQuery Layouts from here. Displaying tables using the DT framework works fine, but I would like to use the rhandsontable package. Unfortunately, this is…
SeGa
  • 9,454
  • 3
  • 31
  • 70
0
votes
1 answer

Shiny-App with JQueryLayout and DT-table not working

I am trying to create an app using JQuery-layouts (found here) and the htmlTemplate function from shiny. The only thing that is not functioning for now is displaying a DT-Table on the second Tab in the center pane. The problem also remains when…
SeGa
  • 9,454
  • 3
  • 31
  • 70
0
votes
3 answers

Responsive Two Column HTML Email Template

I have developed an HTML Email template and 2 column designs are also there. And in my case one column is image and the other is text and further, the text consists of a heading and a paragraph. And as all styles are inline so I am facing issues on…
Noman Ahmad
  • 378
  • 1
  • 3
  • 19
0
votes
2 answers

*ngFor output different HTML for every item in Angular 2+

I want to make notification bar and have HTML template as this one:
  • ...
But for different notifications, there should be different message…
milosdju
  • 783
  • 12
  • 27
0
votes
1 answer

Angular 4 capture toggleswitch(on/off) value using [(ngModel)] for n number of rows

I have a toggle switch (on/off) button which i have kept in every row of my table. I want to capture the toggle on and off of every row's button so i can filter based on the results of on/off. Is it possible, if yes then how. I have the switch from…
stec1
  • 216
  • 1
  • 3
  • 12
0
votes
3 answers

how to separate header footer and sidebar in a html template with jquery/ javascript

I have a template which has a header, footer, and sidebar; I want to separate them into separate files and include them in the main template. previously I was using PHP, and it was very easy to do this by include() or required() function, but since…
M.A.O.2
  • 37
  • 9
0
votes
1 answer

Store HTML templates in HTML

I need to store HTML templates to use them for Mustache rendering. {{#.}}

{{caption}}

noober
  • 4,819
  • 12
  • 49
  • 85
-1
votes
1 answer

How can I "compile" an HTML template but not "execute" it?

I'm using Go HTML templates and when you run this function it sends the data to the client, but I would like to store that data in a variable and send it to the client later. How can this be achieved? func (t *Template) ExecuteTemplate(wr io.Writer,…
hermancain
  • 1,452
  • 2
  • 18
  • 24
1 2 3
8
9