Dynamic Source Code Injection

This page demonstrates using <an-code src="..."> to load, escape, and render raw code files directly into your HTML pages without manual copy-pasting.

1. Configuration File (snippets/sample-config.json)

<an-code>

The code block below is dynamically loaded from an external JSON file using <an-code src="./snippets/sample-config.json"></an-code>:

2. HTML Component Usage (snippets/component-demo.html)

<an-code>

The code block below demonstrates how Andalina automatically escapes HTML tags when injecting external markup snippets: