From 86c6f3eeacfe2366988570239834c303a728dcd1 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 9 Jun 2014 12:19:16 +0200 Subject: [PATCH] Wrap all json strings and string values in double-quotes --- docs/Template-maps.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/Template-maps.md b/docs/Template-maps.md index e7faf7f0..dc596094 100644 --- a/docs/Template-maps.md +++ b/docs/Template-maps.md @@ -49,16 +49,17 @@ certificate that would be used to sign any instance of the template. ```js // template.json { - version: '0.0.1', + version: "0.0.1", // there can be at most 1 template with the same name for any user // valid names start with a letter and only contains letter, numbers // or underscores - name: 'template_name', + name: "template_name", // embedded authorization certificate auth: { // See https://github.com/CartoDB/Windshaft-cartodb/wiki/Signed-maps - method: 'token', // or "open" (the default if no "method" is given) - valid_tokens: ['auth_token1','auth_token2'] // only (required and non empty) for 'token' method + method: "token", // or "open" (the default if no "method" is given) + // only (required and non empty) for "token" method + valid_tokens: ["auth_token1","auth_token2"] }, // Variables not listed here are not substituted // Variable not provided at instantiation time trigger an error @@ -66,11 +67,11 @@ certificate that would be used to sign any instance of the template. // Type specification is used for quoting, to avoid injections placeholders: { color: { - type:'css_color', - default:'red' + type:"css_color", + default:"red" }, cartodb_id: { - type:'number', + type:"number", default: 1 } },