Medusa .PAX Support
Medusa introduces .pax extension alongside .html.
PAXLoader:
Custom Jinja loader that:
- Tries landing.html first
- If not found, tries landing.pax
- If .pax requested, tries .html
- Searches subfolders recursively
- No hardcode layout path!
Why .pax?
- Cleaner separation for tester
- Can have
medusa/landing.htmlandmedusa/landing.paxboth valid - For Medusa tester we use
.paxto keep new version clean - Old Nyiblorong still uses
.html- both work!
Example:
templates/
├── medusa/
│ ├── landing.html # Medusa version
│ └── landing.pax # Same but .pax tester
├── nyiblorong/
│ └── blog.html
└── post.html
In content/index.md:
layout: medusa/landing # will find .html or .pax automatically!
This makes Medusa more flexible than Nyiblorong.
Axcora Technology
Axcora Technology is a software development company that specializes in creating innovative solutions for businesses and individuals. We are dedicated to delivering high-quality software products and services that meet the unique needs of our clients.
Visit Axcora