Questions tagged as 'template'

1
answer

Send HTML e-mail template with PHPMailer

I'm trying to send mail using phpmailer, but with the message using html template, but this is going only the email codes, any tips how to do?     
asked by 27.11.2017 / 18:22
1
answer

How to manipulate an HTML element created by Template literals?

Does anyone know why when you create an HTML component using the Template literals it always returns null? ex: I created a list and I want to get the li to put an event, but it always returns null, since it exists in the DOM. const $container...
asked by 13.10.2017 / 04:20
1
answer

How to pass structures to template class functions

I just do not understand why you're wrong. This code works. template class test{ public: struct st1{ T a, b, c; }; struct st2{ T d, e, f; }; T foo1(st1 *st); st1 *foo2(); }; template typename test::st...
asked by 24.08.2017 / 21:35
1
answer

How to create a layout inside Jquery and popular with data within a JSON

To create my image database and I have a page that CURRENTLY populates a list (C #), it follows the code: @{ List <ImageIndexer> imagesFoundList = LuceneSearch.Search((String)Request["search_input"]).ToList(); String imagesFoundJSON = L...
asked by 01.08.2017 / 20:34
0
answers

Doubt about templates using MVC

Following the good practices of the MVC model, would it be correct for a template to evoke another template? Or would that be a unique feature of a map or controller?     
asked by 14.07.2017 / 00:04
1
answer

How to install the Rain TPL library?

Someone could show me an example, because I put here in my index.php that way, but I believe it is out of date, with the current version I believe it should be different, because it did not work, #Instalando raintpl include "lib/template/raintp...
asked by 01.05.2017 / 06:37
1
answer

Jade / Pug does not repeat the same code

I would like to know how to do not need to repeat codes, I do not know if using for , for example I have this code below that corresponds to a card with data of an educator I will have several of these where I will only change the data but...
asked by 23.03.2017 / 18:34
0
answers

django permission

Good afternoon, I'm wanting in the template to make a loop to disable a button according to custom permission. The model code is: # -*- coding: utf8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.a...
asked by 13.03.2017 / 21:36
2
answers

How to create a "template" for pages? [duplicate]

I'm new to site development, programming, etc., my beach is Design, but I'd like to know how you do when you need to repeat some layout on all pages of the site.    For example: I need to repeat this menu on every page of the site. I   I c...
asked by 07.02.2017 / 18:21
1
answer

Inheritance of templates with django

I'm having a problem with applying temeracy to django. Apparently this is all right however my html child is not rendered in the template base.html <!doctype html> {% load static %} <html lang="en"> <head> <meta cha...
asked by 19.12.2016 / 22:32