{"repo":"Stillat/dagger","free":true,"listed":false,"github":"https://github.com/Stillat/dagger","clone":"git clone https://github.com/Stillat/dagger.git","description":"A robust component authoring library for Laravel Blade.","language":"PHP","stars":195,"topics":["blade","laravel","laravel-package"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Dagger Components for Laravel Blade Dagger is a component authoring library for Laravel's Blade templating engine. Dagger components are heavily inspired by Laravel's anonymous components. Dagger's differentiating features are its compiler and expanded capabilities. The Dagger compiler works hard to inline your component's code, perform various optimizations, as well as enable powerful new features, such as the Attribute Cache, Attribute Forwarding, and Slot Forwarding. The end result is a powerful, performant component authoring library with a familiar syntax. The main visual difference when working with Dagger components is the use of the [!NOTE] The component instance will still be accessible via the $component variable inside slots, even if it has been renamed within the component itself. This is intentional to provide a consistent experience for component consumers. Data Properties / Attributes To ease development, and provide a familiar starting place, the Dagger compiler supports Blade's @props directive to help differentiate between which data is a property of the component, and what data should be placed inside the component's attribute bag. Given the component above, we may render it like so: We can also use the props component builder method to achieve the same results: Notes on Conditional aware and props Directives Both the @aware and @props directives are supported by the Dagger compiler. However, because the compiler needs to know about their values ahead of ti","default_branch":null,"files":null,"tree":[],"storefront":"/r/Stillat","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Stillat/dagger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}