From 201675c978d215ffdd3eb82301b18631abab067c Mon Sep 17 00:00:00 2001 From: rickwargo Date: Fri, 20 Nov 2015 19:15:02 -0500 Subject: [PATCH 1/2] added view for custom slot types --- views/test.ejs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/views/test.ejs b/views/test.ejs index 4ba0cce..7e82398 100644 --- a/views/test.ejs +++ b/views/test.ejs @@ -451,6 +451,11 @@ e.$validators.maxlength=function(a,c){return 0>f||e.$isEmpty(c)||c.length<=f}}}}
{{schema|json}}
+

Custom Slot Types

+
+
<%=customSlotTypes%>
+
+

Utterances

<%=utterances%>
From 7c08c851af74b09d0dcd76eb0d87a0493b4abaa9 Mon Sep 17 00:00:00 2001 From: rickwargo Date: Fri, 20 Nov 2015 20:50:11 -0500 Subject: [PATCH 2/2] add customSlotTypes for rendering --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4aedbfa..ee3d93b 100644 --- a/index.js +++ b/index.js @@ -102,7 +102,7 @@ var appServer = function(config) { res.set('Content-Type', 'text/plain').send(app.utterances()); } else { - res.render('test',{"app":app,"schema":app.schema(),"utterances":app.utterances(),"intents":app.intents}); + res.render('test',{"app":app,"schema":app.schema(),"customSlotTypes":app.customSlotTypes(),"utterances":app.utterances(),"intents":app.intents}); } }); }