Questions tagged as 'template'

2
answers

What is the difference between Template and Layout?

I'd like to know the semantic, visual difference and front-end and back-end web development. @edit Related: Is there any kind of dependency? To have the layout you need to have the template?
asked by 24.09.2015 / 21:47
1
answer

How to use Template in C ++?

I'm learning a bit about template and I made an example, but when I applied to my project I could not, let's go to the following test: #include <iostream> using namespace std; template <class Type> class p{ public: Type setVa...
asked by 10.04.2015 / 14:42
1
answer

Change template classes in Visual Studio

Is there a way to configure Visual Studio to create classes with public ? When you create a class by template, either from the dropdown menu of a mouse over a class name that does not exist yet, or by adding a class to a project, they a...
asked by 13.11.2014 / 01:01
2
answers

What'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?     
asked by 08.11.2017 / 12:44
2
answers

How to check if a type is numeric in C ++?

Let's suppose 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 numérico"); return x + y; } Can you tel...
asked by 09.08.2018 / 23:27
1
answer

What is a template engine?

Little by little, I learned about the template engine in PHP. By the way, I understood what it is, but I have doubts. Is it a "programming language?" I put quotation marks on a website:    Purpose       At first, a template language or...
asked by 17.07.2017 / 16:03
3
answers

How to call scripts in a Wordpress child theme?

I'm trying to put together a Wordpress template. What I can not do is still call the script in the child theme I created. CSS worked, but the scripts did not. There are several, and I got lost in how to put them in functions.php . I'm t...
asked by 20.02.2014 / 03:11
1
answer

What is a TT extension file for?

Well, I was searching the internet for a way to create a string as template , based on a template file. I came across a response from SOEN that talks about .tt files, to use a template at "runtime". I'd like to know more about...
asked by 27.07.2018 / 17:29
1
answer

Using template, why use 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 <> struct Fibo<0>{ stati...
asked by 27.12.2018 / 20:51
1
answer

How to change the template (visual) of a page asp net mvc5 according to user

How would I do this using areas, and navigating through the main controllers (which are at the root of the project). Basically it is the following: www.algumacoisa.com/home/index = > redirect to the controller that will check t...
asked by 30.08.2016 / 05:58