jsblocks icon indicating copy to clipboard operation
jsblocks copied to clipboard

Add option for changing the default template symbols

Open astoilkov opened this issue 9 years ago • 4 comments

The current ones are {{ and }}. The idea is to have mechanism to change those so you can't avoid collisions with other frameworks.

astoilkov avatar Jul 30 '15 09:07 astoilkov

I have a suggestion to use

  blocks.startChar = '[';
  blocks.endChar = ']';

as options.

this will change the characters to [[ ]] or any string a user chooses.

gnguyo avatar Jul 30 '15 10:07 gnguyo

I like how Riot does it. I suggest something like this:

blocks.brackets = '[ ]';

astoilkov avatar Jul 30 '15 10:07 astoilkov

so the default is blocks.brackets = '{ }';

gnguyo avatar Jul 30 '15 10:07 gnguyo

Nope. The default should be blocks.brackets = '{{ }}';

astoilkov avatar Jul 30 '15 10:07 astoilkov