github.com/servernoj/jade@v0.0.0-20231225191405-efec98d19db1/example/index.jade (about)

     1  :go:func Index(pageTitle string, youAreUsingJade bool)
     2  
     3  mixin for(golang)
     4  	#cmd Precompile jade templates to #{golang} code.
     5  
     6  doctype html
     7  html(lang="en")
     8  	head
     9  		title= pageTitle
    10  		script(type='text/javascript').
    11  			if(question){
    12  				answer(40 + 2)
    13  			}
    14  	body
    15  		h1 Jade - template engine
    16  			+for('Go')
    17  
    18  		#container.col
    19  			if youAreUsingJade
    20  				p You are amazing
    21  			else
    22  				p Get on it!
    23  			p.
    24  				Jade/Pug is a terse and simple
    25  				templating language with
    26  				a #[strong focus] on performance 
    27  				and powerful features.
    28  		footer
    29  			include footer.jade