Referencing variables in HTML

Asked

Viewed 95 times

3

I am a beginner in web programming and I have a very simple question (I believe): I was wondering if there is any way to reference variables of a backend language (in my case I’m using Go-lang) in HTML? I am using the Bootstrap framework to build the frontend.

Hugs!

1 answer

3


in fact there are two very common ways, usually this is done through a view engine of its language, of which it uses its own syntax, is one of the functionalities that it proves is precisely the realization of access variables that are passed from its back-end to your view and can also be performed other operations, in the case of Go, I see people using this one: https://github.com/sipin/gorazor.

The other way would be through ajax requests to your back-end that would return you data and with that you would perform relevant tasks to assemble your front-end according to the returned data.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.