Most voted "template" questions
Template (or "document template") is a content document, with only the visual presentation (headings for example only) and instructions on where and what type of content should enter each portion of the presentation - for example content that may appear at the beginning and content that may only appear at the end.
Learn more…112 questions
Sort by count of
-
11
votes2
answers1324
viewsHow to use Template in C++?
I’m learning a little about template and made an example, but when I went to apply to my project I couldn’t, let’s go to the following test: #include <iostream> using namespace std; template…
-
9
votes1
answer871
viewsChange class template in Visual Studio
There is a way to configure Visual Studio to create classes with public? When creating a class by template, either by menu dropdown mouse over a class name not yet existing, or by adding a class in…
-
9
votes2
answers6946
viewsWhat is the difference between Template and Layout?
I would like to know the difference semantic, visual and web development front-end and back-end. @Edit Related: Is there any kind of dependency? To have the layout you need to have the template?…
-
8
votes2
answers927
viewsWhat’s the difference when creating a class libray (.net framework) and class library(.net standard) project in VS2017?
What are the differences and uses of these types of projects?…
-
7
votes1
answer432
viewsWhat is a template engine?
Before long, I learned about the PHP template engine. By the way, I understood what it is, but I have doubts. • It is a "programming language?" I put in quotes put read this on a website: Purpose At…
-
5
votes3
answers2440
viewsHow to call scripts in a child Wordpress theme?
I’m trying to build a Wordpress template. What I can’t do yet is call the script in the child theme I created. CSS worked, but the scripts didn’t. There are several, and I got lost in how to put…
-
5
votes1
answer356
viewsHow to change the template(visual) of an Asp net mvc5 page according to user
Here’s the thing, I need to read a property that returns me 1,2,3... and with it I determine what kind of visual the page will have, template01,template02... how I would do this using areas, and…
-
5
votes1
answer147
viewsIs it possible to "simulate" C++ Templates in C?
Taking a stack type data structure with array for example: typedef struct stack_s { int top; int item[STACK_MAX_SIZE]; } stack_t; Doubt appears when for some reason I want to use a stack with…
-
5
votes2
answers140
viewsHow to verify if a type is numerical in C++?
Let’s assume I have a function: template<class T> T soma(const T& x, const T& y) { static_assert(/*O tipo é for numérico?*/, "Tipo de argumento inválido, O argumento precisa ser…
-
5
votes1
answer90
viewsUsing template, why use the const modifier in this variable (C++)?
#include <iostream> using std::cout; using std::endl; template <unsigned int i> struct Fibo{ static const unsigned result = Fibo<i-1>::result + Fibo<i-2>::result; }; template…
-
4
votes0
answers462
viewsDjango Session timer Countdown
I have it on my login screen: SESSION_COOKIE_AGE = 1200 # 20 minutos and would like to show the remaining time on my template. Someone knows a good middleware or package for Django that adds a time…
-
4
votes1
answer238
viewsHow to do Scaffolding in ASP.Net MVC with text and resources in en-BR?
How to do the texts generated by Scaffolding of ASP.Net MVC to be texts in? Note: It is not using ASP.NET MVC resources en-BR. Resources only translate automatically generated messages, and are not…
-
4
votes3
answers1233
viewsPass directive inside template
I have the following scenario: I have a directive called modal and I want to pass another directive as content, the code is as follows: maintain-supplier-formulario.js "use strict";…
-
4
votes1
answer66
viewsSpecialize only one template class method
I own 2 basic class types, Classea and Classeb. Classea has a method that generates an integer, and Classeb has a method that generates a Classea. I would like in the method of a Classec, if the…
-
4
votes1
answer256
viewsWhat is the purpose of a TT extension file?
Well, I was searching around the Internet for a way to create a string as template, based on an archive of template. I came across an answer from SOEN that talks about files .tt, to use a template…
-
3
votes1
answer185
viewsWhy explicitly declare the base when calling function when using templates?
I have the following code: A derivative template calling a base function also template. template <int M> struct Base { void foo() {} }; template <int M> struct Derived : public…
-
3
votes1
answer495
viewsDjango - How to treat Exception returned when I try to access a view protected by Developer @login_required?
When Exception occurs I want to redirect to a denied access template! The project in Github py views. # -*- coding: utf-8 -*- ## --------------------------- IMPORTS from django.shortcuts import…
-
3
votes1
answer1169
viewsHow to create an object with class template?
I have this code: Main.cpp Warehouse<Base<int>> arm(1, 1, 1, 1); arm.createSubBase(1,1,1); Warehouse. h private: vector<Base<T>*> whouse; public : void createSubBase(int,…
-
3
votes3
answers235
viewshow to treat different index/templates for the same site?
I have 10 distinct html/php templates and via panel (admin) client can select one of 10 templates for your site. My question is how to make the site know which template to open. In the panel I save…
-
3
votes1
answer225
viewsCreate document templates in Java
I am creating a Java system with Swing, where I would have templates of documents, and fill with data informed by the user in a form that I have already created, so that it generates a PDF of the…
-
3
votes3
answers3889
viewsTemplate and Themes for JSF/Primefaces
I would like to ask a question, and I believe it is quite simple. There are a wide variety of templates for Angularjs, Wordpress and etc. In the same site of Primefaces, has themes such as Modena,…
-
3
votes1
answer139
viewsConcatenate project name to create Template in Visual Studio 2013 c#
I am creating a template for project creation and when editing the file . vstemplate I have something like this : <VSTemplate Version="3.0.0"…
-
3
votes1
answer320
viewsCreate item in another project Visual studio 2013 Template
I am creating a template in visual studio, but I want to add an item in a project to be created in all other projects of Solution, can anyone help me? the code is more or less this: <VSTemplate…
-
3
votes1
answer276
viewsTotal with plurality in Django template
Guys I have the following code: <div> <h4>{{ combination|length }} combinação{{ combination|length|pluralize }}</h4> <h5><b>Total:</b> {{…
-
3
votes1
answer62
viewsIs it possible to load undescore templates externally with javascript?
I usually use Template Engines in order to render HTML via Javascript. I commonly use undescore.js. I really like this way to make it easier to create HTML with Templates. Example: Somewhere in the…
-
3
votes1
answer111
viewsMoodle - How to disassemble Locks
How to use blocks to get layout elements? Example: <?php echo $OUTPUT->blocks('course_summary', 'cssCourse'); ?> I want to use the block with the course_summary id, only it does not appear…
-
3
votes1
answer2542
viewsHow to access Vue-Router dynamic route parameter
Using the Vue-router, I came across a problem, when I weigh a dynamic route, like { path: '/horario/:dia/:hora', component: Bar }, a problem happens, I can access the values of day and time on the…
-
3
votes1
answer101
viewsIdentify if and endif with regex?
In an example of the OS found: <?php $a = 22; $b = 33; $template = ' [if $b>0 ] B > 0 [/if]'; // IF - ENDIF preg_match_all('/\[if(.*?)\][\s]*?(.*)[\s]*?\[\/if\]/i', $template, $regs,…
-
2
votes0
answers104
viewsCreate VSIX projects in Visual Studio Professional
I created templates for Visual Studio in the version Ultimate, but for some reasons I needed to migrate to the Visual Studio Professional, and since then my projects VSIX no longer work. The…
-
2
votes0
answers85
viewsHow to know which files and folders are not being used?
I have a web template, and it has several image files, css and js. My question is whether I know which files are not being used without I have to open each html, css and js to know what is related…
templateasked 9 years ago Marcelo Diniz 3,356 -
2
votes1
answer116
viewsTemplate error when returning value
I am implementing a class that represents an array using template and dynamic allocation. However, when the +(addition) operator was overloaded, the following build error occurred (only when I try…
-
2
votes0
answers79
viewsLeaving the entire column highlighted (Django + template)
I’m trying to leave the whole column colored, but only the last line is getting. I’ve tried every possible logic, but I’m not getting it right. This post is a continuation of Total and subtotal in…
-
2
votes1
answer84
viewsBenefit from the use of template engine
I’m creating table cells by grabbing information from an api using "append", I wonder if there would be any benefit to using some template engine like Handlebars.js instead of using "append"? code:…
-
2
votes1
answer4383
viewsHighlighted image Wordpress
Hello! I am with the following problem, I am building a theme and the page where the posts are added is not the index.php, for the posts to appear I had to put <?php query_posts(''); ?> in the…
-
2
votes1
answer1507
viewsUsing jsPDF, are there any templates ready?
I’m using the jsPDF to make a report from some user input data, however I am having many difficulties to make the report beautiful even more due to the fact that I do not know how to customize much…
-
2
votes2
answers535
viewsDjango Custom Template Tags
Good afternoon, recently I have a problem in the Django framework, I have a problem in my custom template tag, I do the method in a.py file call it in the templates and does not display the result I…
-
2
votes2
answers589
viewsLegacy of templates with Django
I’m having a bit of a problem applying template inheritance with Django. Apparently it’s all right but my html son is not rendered in the template html base. <!doctype html> {% load static %}…
-
2
votes1
answer92
viewsFunction with variable number of parameters via template
I know that templates in function definitions do, for each configuration it makes possible, compile a distinct function. I want to know if it is possible to create functions of varied number of…
-
2
votes1
answer130
viewsDJANGO > Render one FOR inside another
I have a situation that is as follows: I need to make a Tablea in html where I have to show the totalizers and a line and the values that make up this totalizer, as a small example below Revenue =…
-
1
votes2
answers901
viewsTemplates for Laravel
I am starting a system that will be the basis of all systems in the company. The system will develop in Laravael 4 and the interface will be a theme of wrapbootstrap. What would be the best…
-
1
votes0
answers345
viewsCould not parse the remainder: '[1]' from 'i[1]' in Django
I am trying to make a check to modify the bootstrap component according to the status id, but it returns me this error: Could not parse the remainder: '[1]' from 'i[1]' in Django The code snippet…
-
1
votes1
answer88
viewsSet the Itemssource of a Combobox within an Itemtemplate
Hello, I have a Combobox inside the Itemtemplate of a Listbox, the items in that Listbox are defined from an Observablecollection in Viewmodel, and each item in that list is an object with a…
-
1
votes1
answer492
viewsUndefined Reference error when trying to use a template class
I have a class template Set and a menu class both with their respective . cpp and . hpp, when trying to use a cluster class pointer in my Menu class I get the following error: ||=== Build: Debug in…
-
1
votes1
answer525
viewsServlet Faces - Error in context with path
Good morning, As I have already said in another topic is not my web area but I am trying to kkkk... After adding a Responsive template named Prologue I have the following error. GRAVE:…
-
1
votes1
answer82
viewsChange Menuit Popup Template in WPF
I am trying to modify the style of my Menuitems and their Submenuitems but the popup where Submenuitems are in a standard style. Just to be clear: Popup is standard Nacor of a WPF Window…
-
1
votes2
answers2108
viewsCreate Bootstrap template to be used on all JSP pages of your Java app, implementing only "content/content"
Good morning, Guys, "I know it’s more of a subject of the same," but could someone help me with that question. I’m used to making templates with facelets, so I write down a xhtml file inside it,…
-
1
votes1
answer76
viewsHow to apply a scope to a dynamically created element in Angularjs?
At the angle, I realize that the scope of the Controller is not being applied in a particular piece of code, when it is created dynamically. For example, I have a certain content within a tag…
-
1
votes1
answer1091
viewsHow to use Bootstrap template
I wanted to use the Gentelella template. I even looked for explanations but I couldn’t find. I need to replace an admin panel that I created a few years ago with a newer one. And I saw this…
-
1
votes1
answer203
viewsRegex expression to find more than one occurrence in the same string
I am developing a template engine in PHP for learning issues because I am new to programming, and I would like a way to find more than one #include() in my view, because the one I have currently…
-
1
votes1
answer40
viewsBlank line Elixir template
This code displays a message if it exists, but when it does not exist, displays a white line: <%= if @comprovante["transacao"]["complemento"] do %>OBSERVACAO: <%=…