Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for including custom CSS, JS and metadata tags to a page #1202

Closed
vladbailescu opened this issue Oct 8, 2020 · 0 comments · Fixed by #1203
Closed

Add support for including custom CSS, JS and metadata tags to a page #1202

vladbailescu opened this issue Oct 8, 2020 · 0 comments · Fixed by #1203
Labels
enhancement New feature, or improvement to an existing feature.
Milestone

Comments

@vladbailescu
Copy link
Member

As a developer, it would be good if I could easily include CSS link, Javascript script and metadata meta tags in a page. This would be driven by a context-aware configuration and would allow:

  • an arbitrary number of such tags to be included
  • defining the type of the tag and its attributes
  • defining the location of the page where they would be included
  • possibility to group all paths under same prefix so that they can be easily updated when using long-term caching

Using context-aware resources, the configuration could look like:

config
     + prefixPath="/some/path"
     - item01
          + element=["link"|"script"|"meta"]
          + location=["header"|"footer"]
          + attributeName="attributeValue"
          ...
      - item02
      ...
@vladbailescu vladbailescu added enhancement New feature, or improvement to an existing feature. pull request Has a pull request associated. labels Oct 8, 2020
@vladbailescu vladbailescu added this to the 2.12.0 milestone Oct 8, 2020
vladbailescu added a commit that referenced this issue Oct 13, 2020
…1203)

* Add support for including custom CSS, JS and metadata tags to a page
* Added documentation to component README
* Updated docs and test content
* Updated tests

Fixes #1202
@msagolj msagolj removed the pull request Has a pull request associated. label Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature, or improvement to an existing feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants