php artisan boost:add-skill nowo-tech/wallet-qr-bundle
Save this content to: .cursor/rules/20-twig-and-public-assets.mdc
This bundle ships no Twig templates and no public assets: it only exposes the Twig functions
`wallet_qr_data_uri()` and `wallet_qr_for_url()` from `src/Twig/WalletQrExtension.php`.
Templates live in the host application (and in `demo/*/templates` for the demos).
Prefer:
- small, backward-compatible changes to the Twig function names and signatures
- returning data (URLs, data URIs, value objects) and letting Twig auto-escape the HTML context
- keeping `wallet_qr_for_url()` behind the nowo_qr_code URL policy / allowlist
Do not mark untrusted strings as `is_safe`.
Do not add templates or `src/Resources/public` assets without updating README, docs and these rules.
This bundle ships no Twig templates and no public assets: it only exposes the Twig functions
wallet_qr_data_uri() and wallet_qr_for_url() from src/Twig/WalletQrExtension.php.
Templates live in the host application (and in demo/*/templates for the demos).
Prefer:
wallet_qr_for_url() behind the nowo_qr_code URL policy / allowlistDo not mark untrusted strings as is_safe.
Do not add templates or src/Resources/public assets without updating README, docs and these rules.
How can I help you explore Laravel packages today?