Questions tagged as 'template'

3
answers

how to treat different index / templates for the same site?

I have 10 distinct html / php templates and via panel (admin) the client can select one of the 10 templates for his site. My question is how to get the website to know which template to open. In the panel I save the selected template in the d...
asked by 18.01.2015 / 20:11
1
answer

Moodle - How to unmount the blocks

How to use the 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 on the first page ... Home ..........
asked by 26.03.2016 / 00:27
1
answer

Django - How to handle Exception returned when trying to access a view protected by the @login_required decorator?

When the Exception occurs I want to make a redirect to an access denied template! The project at GitHub views.py # -*- coding: utf-8 -*- ## --------------------------- IMPORTS from django.shortcuts import render, render_to_respons...
asked by 20.05.2014 / 20:11
1
answer

Concatenate project name to create Template in Visual Studio 2013 C #

I'm creating a project template and editing the .vstemplate file has something like this: <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project"> <TemplateData> <Name&...
asked by 16.04.2015 / 15:57
1
answer

Create item in another project Visual studio 2013 Template

I'm creating a template in visual studio, but I want it to add an item to a project and it's created in all other solution projects, can anyone help me? the code is more or less this: <VSTemplate Version="3.0.0" xmlns="http://schemas.micros...
asked by 17.04.2015 / 17:45
1
answer

How to access Vue-Router dynamic route parameter

Using the vue-router, I came across a problem, when a dynamic route, type { path: '/horario/:dia/:hora', component: Bar }, A problem occurs, I can not access the day and time values on the destination page, this is because it is a template,...
asked by 08.06.2017 / 05:09
1
answer

Is it possible to load undescore templates externally with javascript?

Generally, I use Template Engines to render HTML via JavaScript. Usually use undescore.js . I really like this way of making it easier to create HTML with Templates. Example: Somewhere in HTML: <script type="text/template"...
asked by 02.10.2015 / 18:12
0
answers

Django session timer countdown

I have this in my login screen: SESSION_COOKIE_AGE = 1200 # 20 minutos and would like to show the remaining time in my template. Does anyone know a good middleware or package for Django that adds a missing timer to logout. I did not fi...
asked by 13.01.2015 / 21:49
1
answer

Benefit of using template engine

I'm creating cells for tables getting information from an api using append, I wonder if there would be any benefit in using some template engine like Handlebars.js instead of using append? code: function ajaxRank(){ var $orders = $('#orde...
asked by 25.03.2016 / 00:40
1
answer

Function with variable number of parameters via template

I know that the templates in function definitions makes, for each configuration that it allows, to compile a different function. I want to know if it is possible to create functions with a varied number of parameters in such a way that it com...
asked by 03.08.2017 / 22:29