Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handlebars: support block names with dashes (or other special characters) #587

Merged
merged 1 commit into from
Jun 12, 2015
Merged

Handlebars: support block names with dashes (or other special characters) #587

merged 1 commit into from
Jun 12, 2015

Conversation

apfelbox
Copy link
Contributor

@apfelbox apfelbox commented Jun 1, 2015

Hi,

as mentioned in #586 blocks with dashes should be supported.
As I was searching for a list of allowed characters in block names I couldn't find anything in the short time I was looking ({{#this-is_ällowed✓-yep}} .. {{/this-is_ällowed✓-yep}}).

This hints in the direction that any valid object key is allowed, but whitespace is obviously not allowed (as Handlebars couldn't determine whether this is still the block name or already an argument). So I went for \S, as basically only whitespace would error out (which was confirmed by my quick tests).

Fixes #586

@apfelbox apfelbox changed the title Handlebars: support block names with dashes Handlebars: support block names with dashes (or other special characters) Jun 1, 2015
Golmote added a commit that referenced this pull request Jun 12, 2015
Handlebars: support block names with dashes (or other special characters)
@Golmote Golmote merged commit f409b13 into PrismJS:gh-pages Jun 12, 2015
@miguelcobain
Copy link

Awesome!

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.

3 participants