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

Preserve unrecognized data binding #3

Closed
Munawwar opened this issue Apr 27, 2014 · 1 comment
Closed

Preserve unrecognized data binding #3

Munawwar opened this issue Apr 27, 2014 · 1 comment
Assignees

Comments

@Munawwar
Copy link
Owner

Use case: To use htmlizer on server-side to do a render, but preserve any event binding for client-side so that it can be used with knockoutjs.

However, the use case I only anticipated is that the same template would be used on client and server side, and so currently data-bind attribute is completely stripped off by htmlizer.

Note: There could be a second use case, where user needs to do a partial render with htmlizer. To solve that, we'll need a separate attribute like data-htmlizer or something.

@Munawwar
Copy link
Owner Author

Munawwar commented May 4, 2014

Having an attribute like data-htmlizer can solve both use cases. It will be through a boolean config parameter named "noConflict" (default false). It will also not process any containerless statements that begin with "ko " prefix.

Munawwar added a commit that referenced this issue May 5, 2014
@Munawwar Munawwar self-assigned this May 5, 2014
@Munawwar Munawwar closed this as completed May 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant