Skip to content

WP-126 Register named_paths for identifying separate folders with prefix#5

Merged
junaidbhura merged 6 commits intomainfrom
feature/WP-126-create-anonymous-component-path
Apr 23, 2025
Merged

WP-126 Register named_paths for identifying separate folders with prefix#5
junaidbhura merged 6 commits intomainfrom
feature/WP-126-create-anonymous-component-path

Conversation

@vampdroid
Copy link
Contributor

@vampdroid vampdroid commented Apr 11, 2025

  • Adds functionality to create AnonymousComponentPath in WordPress blade.
  • Now you can add a prefix as a key and value as a path to our paths_to_views. These will be registered a anonymousComponentPath stating that we can use them as <x-{prefix}::{componentName}>
		'paths_to_views' => [
			'atoms' => '/wp-content/themes/enchanting/src/front-end/atoms'
		],
  • This will create an anonymous component path with 'atoms' as prefix.
  • If there is a component named button inside atoms/ folder, it will became accessible using <x-atoms::button>

@junaidbhura junaidbhura merged commit 309e9ae into main Apr 23, 2025
1 check passed
@junaidbhura junaidbhura deleted the feature/WP-126-create-anonymous-component-path branch April 23, 2025 04:41
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.

2 participants