aboutsummaryrefslogtreecommitdiff
path: root/node_modules/archy/examples/multi_line.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/archy/examples/multi_line.js')
-rw-r--r--node_modules/archy/examples/multi_line.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/node_modules/archy/examples/multi_line.js b/node_modules/archy/examples/multi_line.js
new file mode 100644
index 000000000..8afdfada9
--- /dev/null
+++ b/node_modules/archy/examples/multi_line.js
@@ -0,0 +1,25 @@
+var archy = require('../');
+
+var s = archy({
+ label : 'beep\none\ntwo',
+ nodes : [
+ 'ity',
+ {
+ label : 'boop',
+ nodes : [
+ {
+ label : 'o_O\nwheee',
+ nodes : [
+ {
+ label : 'oh',
+ nodes : [ 'hello', 'puny\nmeat' ]
+ },
+ 'creature'
+ ]
+ },
+ 'party\ntime!'
+ ]
+ }
+ ]
+});
+console.log(s);