Server Side Rendering
By default, BAM web components are rendered on the client with Javascript. At times, it is useful to have these componenet pre-rendered as HTML to be sent along with the page request. For web components that are not location-dependent, we support rendering the HTML via an API call.
API
GET Request URL - https://bam.actionnetwork.com/v1/render/components/[BAM COMPONENT NAME]/template?
All of the props/attributes associated with the web component should be passed as query parameters
There are not authentication requirements needed with this endpoint. Responses are cached for better response times.
Example: https://bam.actionnetwork.com/v1/render/components/bam-compliance/template?location=ON&country-code=CA