mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-10-30 21:58:32 +00:00 
			
		
		
		
	update
This commit is contained in:
		
							
								
								
									
										1
									
								
								node_modules/liquidjs/demo/browser/date.html
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/liquidjs/demo/browser/date.html
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| access time: {{date|date: "%Y-%m-%d %H:%M:%S"}} | ||||
							
								
								
									
										1
									
								
								node_modules/liquidjs/demo/browser/hello.html
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/liquidjs/demo/browser/hello.html
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <h2>Welcome to {{ name | capitalize}}, {% include 'date.html' %}</h2> | ||||
							
								
								
									
										31
									
								
								node_modules/liquidjs/demo/browser/index.html
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								node_modules/liquidjs/demo/browser/index.html
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
|  | ||||
| <head> | ||||
|   <title>liquidjs for the browser</title> | ||||
|   <script src="../../dist/liquid.js"></script> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
|   <script> | ||||
|     var engine = window.Liquid({ | ||||
|       extname: '.html', | ||||
|       cache: true | ||||
|     }); | ||||
|     var src = '<h2>Welcome to {{ name | capitalize}}, ' + | ||||
|       'access time: {{date|date: "%Y-%m-%d %H:%M:%S"}}</h2>'; | ||||
|     var ctx = { | ||||
|       name: 'Liquid', | ||||
|       date: new Date() | ||||
|     }; | ||||
|     engine.parseAndRender(src, ctx) | ||||
|       .then(function(html) { | ||||
|         return engine.renderFile('hello', ctx); | ||||
|       }) | ||||
|       .then(function(html) { | ||||
|         document.body.innerHTML += html | ||||
|       }); | ||||
|   </script> | ||||
| </body> | ||||
|  | ||||
| </html> | ||||
		Reference in New Issue
	
	Block a user
	 tatianamac
					tatianamac