Skip to main content
AppML - Including HTML

AppML - Including HTML

Reuse HTML fragments and keep repeated presentation easier to maintain.

AppML - Including HTML illustration

How it works

HTML includes let a page compose reusable fragments such as headers, navigation, and shared sections. Keep include paths controlled, ensure included elements preserve semantic document structure, and account for how relative links and scripts behave from the loaded fragment.

Good practice

  • Use matching versions of the AppML client, model format, and examples.
  • Keep secrets and permission checks out of browser-delivered HTML, JavaScript, and model files.
  • Validate input and authorize every read or write on the server.
  • Handle loading, empty, and error states, and check generated content for accessibility.

Further reading: Tutorialspoint: AppML - Including HTML · AppML library reference.