Skip to content

Comments

add 'interpolator_regex' setting#12

Merged
mhodgson merged 3 commits intoGoBoundless:masterfrom
hmaurer:master
Oct 15, 2012
Merged

add 'interpolator_regex' setting#12
mhodgson merged 3 commits intoGoBoundless:masterfrom
hmaurer:master

Conversation

@hmaurer
Copy link
Contributor

@hmaurer hmaurer commented Oct 15, 2012

Hi!

The default interpolator syntax is conflicting with the javascript syntax to embed a hash into an array ([{ hello: 'world'}]. By default it stays [{ ... }] but it can now be configured to be any non-conflicting syntax you wish:

default:
  interpolator_regex: "\[%(.*?)%\]"

the default interpolator syntax is conflicting with the javascript
syntax to embed a hash into an array ([{ hello: 'world'}].
@hmaurer hmaurer closed this Oct 15, 2012
@hmaurer hmaurer reopened this Oct 15, 2012
ex:

default:
  version:
    major: 2

[{ version.major }]
mhodgson added a commit that referenced this pull request Oct 15, 2012
add 'interpolator_regex' setting and allow deep settings in the config
@mhodgson mhodgson merged commit b669d23 into GoBoundless:master Oct 15, 2012
@mhodgson
Copy link
Contributor

This landed in 1.0.8. Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants