Fixes a bug with Node.js example generating invalid package.json and swagger.json

Currently string "... You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or ... " gets URL encoded, resuling in Node js throwing "Unable to parse" error.

Use of {{{ }}} forces mustache to skip URL encoding
http://mustache.github.io/mustache.5.html#Partials
This commit is contained in:
Alex Kras 2015-05-04 15:07:03 -07:00
parent b70f5bc98b
commit df95114a93
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "{{projectName}}",
"version": "{{appVersion}}",
"description": "{{appDescription}}",
"description": "{{{appDescription}}}",
"main": "index.js",
"keywords": [
"swagger"

View File

@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"title": "{{appName}}",
"description": "{{appDescription}}",
"description": "{{{appDescription}}}",
"version": "{{apiVersion}}"
},
{{#apiInfo}}