diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 0c38da22..951572dd 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -16,7 +16,7 @@ A clear and concise description of what the bug is. ``` **Expected behavior** -What you expected to happen when using `@pure`. +What you expected to happen when using `@blaze`. **Actual behavior** What actually happened instead. @@ -27,4 +27,4 @@ What actually happened instead. - Blaze version: [e.g. 1.0.0] **Additional context** -Add any other context about the problem here (error messages, stack traces, etc.) \ No newline at end of file +Add any other context about the problem here (error messages, stack traces, etc.) diff --git a/AGENTS.md b/AGENTS.md index 7d1c4e57..63f475e9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,36 +6,36 @@ This document provides guidance for AI assistants helping users work with Larave Laravel Blaze is a performance optimization package that pre-renders static portions of Blade components at compile-time, dramatically reducing runtime overhead. It works by: -1. Identifying components marked with the `@pure` directive in their source +1. Identifying components marked with the `@blaze` directive in their source 2. Analyzing component source for runtime dependencies 3. Pre-rendering eligible components during Blade compilation 4. Falling back to normal rendering for unsafe components ## Core Concepts -### The @pure Directive +### The @blaze Directive -The `@pure` directive tells Blaze that a component has no runtime dependencies and can be safely optimized. It must be placed at the top of a component file: +The `@blaze` directive tells Blaze that a component has no runtime dependencies and can be safely optimized. It must be placed at the top of a component file: ```blade -@pure +@blaze @props(['title'])
Welcome back!
@endauth ``` @@ -171,7 +171,7 @@ Avoid `@pure` for components that have runtime dependencies: @props(['href']) - request()->is($href)])> + request()->is($href)])> {{ $slot }} ``` @@ -179,7 +179,7 @@ Avoid `@pure` for components that have runtime dependencies: ```blade {{-- Error bags are request-specific --}} -@if($errors->has('email')) +@if($errors->has('email')) {{ $errors->first('email') }} @endif ``` @@ -187,13 +187,13 @@ Avoid `@pure` for components that have runtime dependencies: ```blade {{-- Session data changes at runtime --}} -