jeffreyvanrossum / wp-views
A package that allows you to easily fetch view files and pass arguments along.
Installs: 18
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jeffreyvanrossum/wp-views
Requires
- php: ^8.0
Requires (Dev)
- laravel/pint: ^1.13
README
WP Views
Dead simple package that allows you to easily fetch view files and pass arguments along.
Installation
composer require jeffreyvanrossum/wp-views
Usage
You can either create a class or helper function to access your view file.
function your_prefix_view(...$args) { return new WPViews('your-view-path')->render(...$args); }
Then after you can use it like so:
your_prefix_view('your-view', ['foo' => 'bar']);
Contributors
License
MIT. Please see the License File for more information.