diff --git a/lib/couchrest/helper/file_manager.rb b/lib/couchrest/helper/file_manager.rb index 9ac29a0..0e01deb 100644 --- a/lib/couchrest/helper/file_manager.rb +++ b/lib/couchrest/helper/file_manager.rb @@ -161,6 +161,7 @@ module CouchRest def package_views(views, library) if library lib = "var lib = #{library.to_json};" + puts lib views.each do |view, funcs| apply_lib(funcs, lib) if lib end diff --git a/lib/couchrest/helper/template-app/lib/helpers/helper.js b/lib/couchrest/helper/template-app/lib/helpers/helper.js new file mode 100644 index 0000000..6cb1445 --- /dev/null +++ b/lib/couchrest/helper/template-app/lib/helpers/helper.js @@ -0,0 +1,3 @@ +function aHelperFunction() { + return "help"; +}; \ No newline at end of file diff --git a/lib/couchrest/helper/template-app/lib/templates/example-template.html b/lib/couchrest/helper/template-app/lib/templates/example-template.html new file mode 100644 index 0000000..6e1aa89 --- /dev/null +++ b/lib/couchrest/helper/template-app/lib/templates/example-template.html @@ -0,0 +1,26 @@ + + + + Generated CouchApp Form Template + + + +
+

<% doc.title %>

+
+ + + + + + + + + \ No newline at end of file