-
Notifications
You must be signed in to change notification settings - Fork 70
cobigen htmlplugin
The HTML Plug-in enables merging result HTML files to existing ones. This plug-in is used at the moment for generate an Angular2 client. Currently, the generation of Angular2 client requires an ETO java object as input so, there is no need to implement an input reader for ts artifacts for the moment.
As for the Angular2 generation the input is a java object, the trigger expressions (including matchers and variable assignments) are implemented as Java.
There are currently two merge strategies:
-
merge strategy
html-ng*
(add the new code respecting the existing is case of conflict) -
merge strategy
html-ng*_override
(add the new code overwriting the existent in case of conflict)
The merging of two Angular2 files will be processed as follows:
The merge algorithm handles the following AST nodes:
-
md-nav-list
-
a
-
form
-
md-input-container
-
input
-
name (for name attribute)
-
ngIf
Warning
|
Be aware, that the HTML merger is not generic and only handles the described tags needed for merging code of a basic Angular client implementation. For future versions, it is planned to implement a more generic solution. |
Disclaimer
If you discover any documentation bugs or would like to request new content, please raise them as an issue or create a pull request. Contributions to this wiki are done through the main repo under the folder documentation.
License
This documentation is licensed under the Creative Commons License (Attribution-NoDerivatives 4.0 International
)