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

Feature/context #61

Closed
wants to merge 2 commits into from
Closed

Feature/context #61

wants to merge 2 commits into from

Conversation

glebmachine
Copy link

Added bemto_settings_context_replace option to disable automatic tag replacement on blocks with no tag provided

Test case included

@kizu
Copy link
Owner

kizu commented Feb 1, 2016

This was partly implemented in 1.0.0, you can now set an individual tag's metadata. In future almost the same functionality as in this PR would be implemented as #66, in a way the tag's metadata could be changed using all the settings setters and the new +bemto_scope as well.

Right now, in 1.0.0, if setting the individual tag's metadata won't be enough for you, you could patch the bemto_tag_metadata object manually, like this:

- bemto_tag_metadata.a.content_type = 'block'

+b('a').link
  +e.element
  +e('a').element

Warning! this, though, undocumented feature and could be changed in future minor versions when the #66 would be implemented.

@kizu kizu closed this Feb 1, 2016
@glebmachine
Copy link
Author

Ok, got it, thank you)

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