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

Specify type in inlineJS #1683

Merged
merged 1 commit into from
Oct 11, 2017
Merged

Specify type in inlineJS #1683

merged 1 commit into from
Oct 11, 2017

Conversation

paulmassen
Copy link
Contributor

@paulmassen paulmassen commented Oct 10, 2017

This commit allows users to specify type to inlineJS via a 4th parameter .

This might be useful for those who would like to output encoded json microdata which require to use
<script type="application/ld+json"> to be valid.

Exemple usage: $assets->addInlineJs($outputjson, 100,'', "application/ld+json");
which will output: <script type="application/ld+json">

This commit allows users to specify type to inlineJS via a 4th parameter . 

This might be useful for those who would like to output encoded json microdata which require to use 
<script type="application/ld+json"> to be valid. 

Exemple usage: $assets->addInlineJs($outputjson, 100,'', "application/ld+json");
which will output: <script type="application/ld+json">
@rhukster rhukster merged commit df63a85 into getgrav:develop Oct 11, 2017
@rhukster
Copy link
Member

Please be sure to submit a PR for the documentation to make people aware of this addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants