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

Add support to double-curly-braces syntax in addition of the vue-like syntax for passing arguments to components #80

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

jpsca
Copy link
Owner

@jpsca jpsca commented Jul 10, 2024

Both of these are now valid:

<Example
    columns={{ 2 }}
    tabbed={{ False }}
    panels={{ {'one': 'lorem', 'two': 'ipsum'} }}
    class={{ 'bg-' + color }}
/>

<Example
    :columns="2"
    :tabbed="False"
    :panels="{'one': 'lorem', 'two': 'ipsum'}"
    :class="'bg-' + color"
/>

@jpsca jpsca merged commit 78ab068 into main Jul 10, 2024
4 checks passed
@pietz
Copy link

pietz commented Aug 2, 2024

thank you for this!

@jpsca jpsca deleted the double-curly-braces branch October 19, 2024 19:21
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