+ 2
Can't understand {these brackets in html code}
Hello guys, could someone explain me what do these brackets do and which language that is? Thanks in advance. you are awesome ! https://code.sololearn.com/WrsA65UK2udc don't forget to upvote ^ +1 so it can help more people. thx !
6 Respostas
+ 2
These curly brackets {} have no effect on code. They are printed on screen as it is.
These curly brackets have no role in HTML.
Happy coding
+ 2
Look at the output of your code, the braces are shown as it is which shows that braces has no meaning in that code, but if you saw this code somewhere and was curious as to why those words are wrapped inside braces, it could be a framework.
For example the shopify platform runs on the language called LIQUID, and in liquid we can have some variables which can be used in our html by wrapping them inside the braces.
Other than LIQUID, React js also has some application of these braces while writing your code in jsx which is VERY similar to html tags, hence it could be jsx where you saw this use of braces and misinterpreted as HTML.
Other than these there are a lot of frameworks and languages which could be using these braces with html.
In a nutshell, there's no use of braces in html by itself.
+ 1
It looks like a bit of Angular view code.
+ 1
What kind of role do they play?
that's my question...
If they do nothing then why did we write it????
if anyone knows and is sure about it please leave a message ! :)
+ 1
Oh alright , makes sense, my bad i forgot to mention that flaskframwork is used!
So knowing this, it means that it has to do with flask ^^ thx a lot @Hitesh Datt
+ 1
Answer : I finaly found out it is jinja2 syntax ! thx for your help guys