diff --git a/README.md b/README.md index 0134673..f27cf25 100644 --- a/README.md +++ b/README.md @@ -21,21 +21,8 @@ It would: * build * update JS modules in fanstatic -Next, you need to update the template to include correct bundles. In `/templates/datapub/snippets/upload_module.html`, edit the file names of the modules. - **Note:** -- If you are importing a component from the datapub library, when running `yarn build` will generate two CSS files. Both of these CSS files should be added In `/templates/datapub/snippets/upload_module.html` be able to render external components imported. - -e.g. -``` -{% resource 'datapub/css/2.13e0d705.chunk.css' %} -{% resource 'datapub/css/main.c6297111.chunk.css' %} -{% resource 'datapub/js/runtime-main.95a62798.js' %} -{% resource 'datapub/js/2.bfcaf294.chunk.js' %} -{% resource 'datapub/js/main.d1dbf6f8.chunk.js' %} -``` - - if you are developing a React app, e.g., custom `datapub` app, you can use the following attributes passed from the `/templates/datapub/snippets/upload_module.html`: ```html diff --git a/ckanext/datapub/templates/datapub/snippets/upload_module.template b/ckanext/datapub/templates/datapub/snippets/upload_module.template new file mode 100644 index 0000000..9990f34 --- /dev/null +++ b/ckanext/datapub/templates/datapub/snippets/upload_module.template @@ -0,0 +1,10 @@ +{{RESOURCES}} + +