# Astro Non-HTML pages

import DocButton from '~/components/webkit/DocButton.vue';
import SectionBasicContent from '~/components/SectionBasicContent/SectionBasicContent.vue';
import Container from '~/components/webkit/Container.vue';

<SectionBasicContent
  description="The Astro with Non-HTML Pages template helps you to deploy an application based on Astro able to work with Non-HTML pages. This template demonstrates Astro's flexibility in handling various content types beyond traditional HTML, allowing you to generate and serve different file formats directly from your Astro application."
  buttons={[
    { label: "Deploy template", link: "https://console.azion.com/create/astro/astro-with-non-html-pages", outlined: false, icon: "ai ai-azion", iconPos: "left" },
    { label: "View demo", link: "https://aq8hsgczc5.map.azionedge.net/", severity: "secondary" }
  ]}
>
  <Fragment slot="content">
    <div style="flex: 1; min-width: 300px;">
      | Item | Details |
      |:----------|:------|
      | Repository | [Azion Samples](https://github.com/aziontech/azion-samples/tree/dev/templates/astro/astro-non-html-pages) |
      | Framework | [Astro](/en/documentation/products/devtools/azion-edge-runtime/frameworks-compatibility/astro/) |
      | Use Case | General |
    </div>
    <div style="display: flex; justify-content: center; align-items: center; flex: 1;">
      <img src="/assets/docs/images/uploads/template-showcase/astro/astro-non-html.png" width="400" alt="Astro non html demo" style="min-width: 100%; max-width: 100%; height: auto;" />
    </div>
  </Fragment>
</SectionBasicContent>

## About this template

This template is built with [Astro](/en/documentation/products/devtools/azion-edge-runtime/frameworks-compatibility/astro/) and shows how to emit file formats other than HTML, such as RSS feeds, JSON endpoints, plain text, or dynamically generated images. It relies on Astro endpoints and custom file extensions to control exactly what each route returns. Deployed on Azion, every generated asset is served via a distributed architecture for fast, globally distributed delivery.

## Key features

- Generate non-HTML outputs like RSS, JSON, and plain text from Astro routes
- Use file endpoints to define custom response types and content headers
- Combine standard pages with machine-readable feeds and APIs in one project
- Edge-optimized delivery through Azion for low-latency access worldwide