Adventure Documentation

9. Advanced subjects

  1. Introduction

Introduction

We have gone thru the basics for development in Adventure. The following subjects are for advanced topics, which could be relevant for designs requiring more or different content than the standard Adventure design.

The pages below explain Server-side rendering (SSR), which involves rendering and returning the markup for a single component or component composite. Additionally, JSON rendering is covered, which involves rendering components and outputting JSON with the correct content-type.

9.a. Server-side render

Server-side rendering thru /ssr/ endpoint, returning the markup (with Content-Type: text/html; charset=utf-8 representation header) for a single Adventure Smarty component or component composite. This header ensures that the browser interprets the response as HTML content encoded in UTF-8, which is essential for proper rendering and character encoding.

9.b. JSON

JSON rendering thru /json/ endpoint, returning content with the Content-Type: application/json representation header, which indicates that the response contains JSON data. Using standard Smarty or Adventure Smarty components.

Search results