Add example to build single binary with templates (#1328)
This commit is contained in:
		
				
					committed by
					
						
						Bo-Yi Wu
					
				
			
			
				
	
			
			
			
						parent
						
							dfe37ea6f1
						
					
				
				
					commit
					814ac9490a
				
			
							
								
								
									
										4
									
								
								examples/assets-in-binary/html/bar.tmpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								examples/assets-in-binary/html/bar.tmpl
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
<!doctype html>
 | 
			
		||||
<body>
 | 
			
		||||
  <p>Can you see this? → {{.Bar}}</p>
 | 
			
		||||
</body>
 | 
			
		||||
							
								
								
									
										4
									
								
								examples/assets-in-binary/html/index.tmpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								examples/assets-in-binary/html/index.tmpl
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
<!doctype html>
 | 
			
		||||
<body>
 | 
			
		||||
  <p>Hello, {{.Foo}}</p>
 | 
			
		||||
</body>
 | 
			
		||||
		Reference in New Issue
	
	Block a user