Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
astro-wt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
3bb5a2fc
authored
2025-02-03 17:07:23 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
WrapNode only activates when there is no special.
1 parent
c2977574
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
lib/wrap-node.astro
lib/wrap-node.astro
View file @
3bb5a2f
---
import Node from './node.astro'
const { props: { Wrapped, args, ...rest } } = Astro
const { props: { Wrapped, args,
special,
...rest } } = Astro
---
{!special &&
<Wrapped {...args}>
<Node {...rest}/>
</Wrapped>
}
...
...
Please
register
or
sign in
to post a comment