Skip to content

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']); !!}

gzai added 2 commits January 15, 2020 19:33
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