Skip to content

Make passing arrays possible - #2

Open
modufolio wants to merge 1 commit into
mainfrom
1-feature-passing-arrays
Open

modufolio wants to merge 1 commit into
mainfrom
1-feature-passing-arrays

Conversation

@modufolio

@modufolio modufolio commented Feb 3, 2023

Copy link
Copy Markdown
Collaborator

In a block we could use

<?php push(['scripts' => ['assets/js/alpine.js', 'assets/js/flickity-slider-min.js']]) ?>

In the template we could use

<?= js(Stacks::get('scripts')) ?>

@modufolio modufolio linked an issue Feb 3, 2023 that may be closed by this pull request
@modufolio

Copy link
Copy Markdown
Collaborator Author

@afbora do we need a new helper or is <?= js(Stacks::get('scripts')) ?> enough?

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.

Feature: Passing arrays

1 participant