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 Html::scripts and Html::styles #628

Open
wants to merge 2 commits into
base: 6.0
Choose a base branch
from
Open

Conversation

gzai
Copy link

@gzai gzai commented Jan 15, 2020

Adding scripts and styles can be done with an array

Before :

script

{!! Html::script('scrip01.js'); !!}

style

{!! Html::style('style01.css'); !!}

After :

script

{!! Html::script('scrip01.js'); !!}
{!! Html::scripts('scrip02.js'); !!}
{!! Html::scripts(['scrip03.js']); !!}
{!! Html::scripts(['scrip04.js','script05.js']); !!}

style

{!! Html::style('style01.css'); !!}
{!! Html::styles('style02.css'); !!}
{!! Html::styles(['style03.css']); !!}
{!! Html::styles(['style04.css', 'style05.css']); !!}

Html for adding scripts and styles can be done with an array
Group of Html::script and Html::style
@gzai
Copy link
Author

gzai commented Jan 21, 2020

Issue #294

@mlantz
Copy link
Member

mlantz commented Mar 2, 2020

Tests please

@Jaygatsby9x
Copy link

Jaygatsby9x commented Mar 2, 2020 via email

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.

3 participants