Questions tagged [Template builders] (144)

1
answer

As in the slice in the html template to verify that the element is equal to something in GOLANG?

Let's say I give in HTML template slice of strings S, how can I display only non blank lines? For example, {{range .S}} {{if ????}} Display {{ .}} {{end}} {{end}}
benton_Hilpert asked April 19th 20 at 12:01
2
answers

The scope of application of the backend-template engines?

As I understand it, the templating engines (mustache, ejs, twig, etc.) used for dynamic page generation, data transfer from the backend to the frontend (for example, if the user profile is loaded, the page arrangerede from his data). But what it has meaning, if all the data you can just pull from the frontend via the api o...
Valentina_Dickinson asked April 18th 20 at 13:15
1
answer

How to use the application template under android?

Hello. Periodically, their projects, and using different Wordpress templates. Bought / Downloaded, installed, tweaked, fill them and forward to the tests. The question arose how to edit your mobile apps templates? Here's an example I bought a template on codecanyon, and then what am I going to do with it? What background k...
Lorine.Predov asked April 7th 20 at 09:53
1
answer

How to make the standardization of Excel in PHP?

The system is written in PHP, the reports are uploaded in Excel (xlsx) using PHPSpreadSheet. You have to write nested loops. With cycles without attachments no problem, but how to make 2 investments in cycles is unclear. The array looks like this:$a = [ [ 'id' => 1, 'name' => 'Test', 'items' => [ [ 'label' =>...
stephanie_Dietrich asked April 4th 20 at 01:52
0
answer

Where to get the template payeer doubler?

Correct me please if something is not correctly written Hi everybody! Looking for a template for the doubler, toist to make a Deposit tipo site ftc, etc. can't find, except theirs scripts and all, but I need a template, and owned html, css, js, help me please, I don't know where to look, already all rummaged, the main thing...
Gerson_Schmi asked April 4th 20 at 00:50
4
answers

Component-based Front-end: html templates without framework. How to divide layout the same as scripts and styles?

I June pretender, yet never worked, the orders are not carried out, only for yourself, experience is zero. Finished writing my webpack build, I want to support the components, but is impossible to me to organize the templates. Decided to adhere to the BEM methodology, I read part of the documentation, came to the html, they...
1
answer

Connect css to an MVC system in PHP?

Hello ! I have a problem I don't know what I should do - I have a master template (default.php) For him there are certain styles (css) but for others there are certain pages (CSS) styles. But if I connect to one main pattern is formed mess. How do I connect them separately if I have styles podklyuchaetsya through the main...
eriberto.Kuh asked April 1st 20 at 17:38
0
answer

Can I pre-cache the pages generated by pug?

Is it possible to initially cache the page for pug? And then the first time the server generates a long (don't want google-bot came on nesakkarangal page and indexed it Manually log does not work, I have a lot of them. Or is it better to generate a ton html'her?
Sarah asked April 1st 20 at 16:45
1
answer

How to stop a {foreach} in the template Fenom?

There is a cycle which displays the characteristics of the product, I need to limit to 5 interaci {foreach $options as $option}{$option.caption} {if $option.value is array} {$option.value | join : ', '} {if $option.measure_unit?} {$option.measure_unit} {/if} {else} {$option.value} {if $option.measure_unit?} {$optio...
rosemary.Ziemann asked April 1st 20 at 16:27
0
answer

How to remove excessive indentation in the JavaScript template?

I think that the problem is not so common due to the fact that most users use React+JSX, Vue and Angular. But often VanilaJS I write this codefunction getTemplate() { const html = `<div> <span>Hello</span> </div>`; return html; } I use WebPack. After compression of such a code in the html string ar...
Cassidy.Gleichner asked April 1st 20 at 16:20