Adventure.js Docs Downloads
Score: 0 Moves: 0
Tutorial explaining how to work with custom templates in Adventurejs. tutorial, custom templates

How to:Use Custom Templates

Custom Templates body text.

Though these look like Javascript template literals, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals they are not.* asset:{ string: "The icy north door is $( north is open or closed ).", to split this use var bar = foo.split(':').map(function(e){return (e.trim())}) split and serialize var bar = foo.split(':').map(function(e){return (MyGame.serialize(e.trim()))}) literal: function(){ return ${MyGame.world.icy_door.print_open_or_closed} } }
Documentation generated by JSDoc 3.6.11 on Mon Nov 20 2023 18:04:50 GMT-0800 (Pacific Standard Time)
Found a problem or error in the docs? Report it to docs@adventurejs.com.