Wrap all json strings and string values in double-quotes
This commit is contained in:
parent
8922ae3a45
commit
86c6f3eeac
@ -49,16 +49,17 @@ certificate that would be used to sign any instance of the template.
|
|||||||
```js
|
```js
|
||||||
// template.json
|
// template.json
|
||||||
{
|
{
|
||||||
version: '0.0.1',
|
version: "0.0.1",
|
||||||
// there can be at most 1 template with the same name for any user
|
// 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
|
// valid names start with a letter and only contains letter, numbers
|
||||||
// or underscores
|
// or underscores
|
||||||
name: 'template_name',
|
name: "template_name",
|
||||||
// embedded authorization certificate
|
// embedded authorization certificate
|
||||||
auth: {
|
auth: {
|
||||||
// See https://github.com/CartoDB/Windshaft-cartodb/wiki/Signed-maps
|
// See https://github.com/CartoDB/Windshaft-cartodb/wiki/Signed-maps
|
||||||
method: 'token', // or "open" (the default if no "method" is given)
|
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
|
// only (required and non empty) for "token" method
|
||||||
|
valid_tokens: ["auth_token1","auth_token2"]
|
||||||
},
|
},
|
||||||
// Variables not listed here are not substituted
|
// Variables not listed here are not substituted
|
||||||
// Variable not provided at instantiation time trigger an error
|
// 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
|
// Type specification is used for quoting, to avoid injections
|
||||||
placeholders: {
|
placeholders: {
|
||||||
color: {
|
color: {
|
||||||
type:'css_color',
|
type:"css_color",
|
||||||
default:'red'
|
default:"red"
|
||||||
},
|
},
|
||||||
cartodb_id: {
|
cartodb_id: {
|
||||||
type:'number',
|
type:"number",
|
||||||
default: 1
|
default: 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user