Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add costume directive use by templator #384

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

SonyPradana
Copy link
Owner

@SonyPradana SonyPradana commented Sep 14, 2024

Q A
Is bugfix? No
New feature? Yes
Breaks BC? No
Fixed issues

Add costume directive use by templator

eg:

DirectiveTemplator::register('json', fn ($data): string => json_encode($data));

used

<script>
const data = {{  json($data) }};
</script>

@SonyPradana SonyPradana merged commit 5966265 into master Sep 14, 2024
8 checks passed
@SonyPradana SonyPradana deleted the feat/tempator-costume-directive branch September 14, 2024 06:17
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