Questions tagged as 'template'

1
answer

Error with php tag on smarty

I'm having a question regarding the template engine smarty 3.1, I'm trying to use the {php} tags in the templates and I'm getting the following error:    Fatal error: Uncaught - > Smarty Compiler: Syntax error in template "file: /var/www/h...
asked by 18.03.2018 / 23:46
1
answer

How to use template to specialize a function with type char *?

I'm doing C ++ exercises and I've created a template for the function to return the highest value. template<class Type> Type maximo (const Type a, const Type b) { if (a > b) { return a; } return b; Now the list...
asked by 21.09.2017 / 04:34
1
answer

Template Hierarchy - Wordpress

I would like to know in a simple, easy-to-understand way, if anyone can explain about the WP template hierarchy. I have already seen a lot about it, including the image of the documentation, but I have doubts as to how much to use archive.php fo...
asked by 21.04.2017 / 06:20
1
answer

Django Template Email

DJANGO: Could anyone help me put email template (pull some html or css to email content) through views.py? I tried everything but it did not work, grateful already. Views.py: - - coding: utf-8 - - from django.shortcuts import render f...
asked by 14.02.2016 / 22:55
2
answers

(Django) How to implement a button in the template that triggers any method? [closed]

My question is regarding the implementation of buttons in any template. I want to click this button and do something, such as displaying a message on the screen. How can I do this? Here is an image of my application that I want to add an "exit"...
asked by 12.08.2015 / 17:31
1
answer

How do I set HTML attribute with @yield () in Laravel?

I'm trying to create a template for my control panel in Laravel. I want the top right corner to have a BACK button, where I can link to @yield I tried to make the following code, but I was not successful, it shows as if hr...
asked by 12.10.2014 / 18:45
1
answer

How to use the "break" in the blade template?

I'm developing a modal checklist where new protocol data will be registered. Each attribute of the item will be informed by the user and this information will be registered to the checklist_protocolo table of the database. But informat...
asked by 08.11.2018 / 17:49
1
answer

How to change wodpress paging to load more

I have a website in wordpress, thema is TOTAL. In the pagination of this theme are the page numbers and the arrows before and next. What I want is to replace this paging with a load button, where the user will click to load more posts and portfo...
asked by 05.10.2018 / 20:04
0
answers

How to use the 'len' function in a python template - Flask

I have an AppWeb in python-Flask that I would like to show the number of players online, but I'm kind of lost in this part I already tried {% len (data)%} and {% data | length%} and neither method had result. if anyone can help me in that part....
asked by 13.10.2018 / 21:15
0
answers

Problems Positioning Tags Bottle Framework

I have a template placement problem in the Bottle Framework, my tags from the User.html file are appearing at the bottom of the Base.html file, below, please help me appear inside the Base File.html <head> <meta charset=...
asked by 15.08.2018 / 19:17