Kind: Class
Source: atloria-monorepo/packages/core/src/rendering/audience-renderer.ts
Audience Renderer
Evaluates audience logic and filters content based on viewer permissions.
Methods
| Method | Signature | Returns |
|---|---|---|
render | render(ast: DocumentAST) | string |
Where it refuses work
AudienceRendererstops the work with an early return when!matches.AudienceRendererstops the work with an early return whenthis.options.viewerAudiences.includes(audienceSlug).AudienceRendererstops the work with an early return whennode.defaultVariant.AudienceRendererstops the work with an early return when!this.options.expandIncludes.
Was this page helpful?