aurelia / templating-binding

An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.
MIT License
32 stars 26 forks source link

[QUESTION]Can we remove binding commands after compiling templates? #80

Closed lgabeskiria closed 8 years ago

lgabeskiria commented 8 years ago

capture

EisenbergEffect commented 8 years ago

Yes, it is safe to remove them. The compiler doesn't do that though in order to be more performant. But, if you wanted to remove them, it won't break anything.

lgabeskiria commented 8 years ago

How can I hook into compilation process to remove them automatically?

EisenbergEffect commented 8 years ago

There isn't a hook for that right now. Can I ask why you want to do that?

lgabeskiria commented 8 years ago

I want to hide internal implementation of my components.

EisenbergEffect commented 8 years ago

Please create another issue to request the ability to remove binding commands after compile. We may be able to al teast make an option for it.

lgabeskiria commented 8 years ago

Thank's.