Thursday, March 16, 2023
HomeGolangPassing numerous criteria from theme to theme - Obtaining Aid

Passing numerous criteria from theme to theme – Obtaining Aid

I have numerous web pages with Go html layouts (with no criteria sent out from Go).

The major theme ought to send out 2 string criteria to following theme.

 {{theme "httpend" "major" "below"}}

The various other theme with a manuscript need to have the ability to obtain these specification and also fire a Javascript feature.

 {{specify "httpend"}}

<< manuscript src="" delay><> .
<< manuscript src="/ js/nav. js" delay><> .
<< manuscript>>.
window.onload = feature() {
fillsubmenu( {{.}}, {{.}} ).


The function of this is to make it much more completely dry. Duplicating the manuscript on every web page is more difficult to keep.

There are NO dots criteria sent out from Go. (. main.sub). Simply simple strings ...

No mistakes reported, yet the httpend theme will certainly disappoint up for some factor. And also thus not discharged.

Exactly how can I send out numerous strings as criteria to one more Go html theme?

Make use of a struct or map context and also utilize proper names to develop and also accessibility.

You can not have greater than one context, or "debates" right into as solitary theme.

No, the theme phrase structure and also system.


Most Popular

Recent Comments