In symfony 1.2, JavaScript helpers have been moved to sfProtoculousPlugin, bundled by default. But the helper functions in this plugin are of two kinds:
- Generic JavaScript helpers, not relying on Prototype/Scriptaculous, and that could be reused by some other JS libraries (e.g. javascript_tag(), javascript_cdata_section(), if_javascript(), link_to_function(), _options_for_javascript(), etc.).
- Specific Prototype/Scriptaculous helpers, that rely on this JS lib to be bundled
In order to promote reusability of the generic helpers, the helper group shoud be split in two. The generic part should remain in the core, and the specific part stay in the plugin. The specific part would require the generic part to work.
The only problem is: how to name these helper groups to be BC? I suggest:
- Generic: JavascriptBaseHelper
- Plugin: JavascriptHelper