/parcel-plugin-zengine-html-migrator

For use in Zengine Migration Wrapper

Primary LanguageJavaScriptMIT LicenseMIT

parcel-plugin-zengine-html-migrator

Parcel plugin that interpolates v1 plugin HTML into v2 HTML body

Also see: parcel-plugin-zengine-js-migrator parcel-plugin-zengine-css-migrator

Installation

npm i -d parcel-plugin-zengine-html-migrator

Attention: parcel-bundler has to be installed

Usage

  1. Add %PLUGIN_HTML% to the wrapper's index.html between the body tags.
  2. Ensure your ng-templates all live in v1-output/plugin.html
  3. Run parcel normally

Example

index.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Cool Plugin</title>
  </head>
  <body>
    %PLUGIN_HTML%
  </body>
</html>

run it
parcel index.html

output

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Cool Plugin</title>
  </head>
  <body>
    <script type="text/ng-template" id="my-cool-plugin">
      <!-- etc -->
    </script>
  </body>
</html>