13 lines
307 B
Nim
13 lines
307 B
Nim
import os, happyx
|
|
|
|
component Read:
|
|
title: string
|
|
|
|
# TODO: fix
|
|
# if !fileExists("/public/Blog/{self.title}.html"):
|
|
# route "/404"
|
|
# else:
|
|
|
|
`template`:
|
|
tIframe(src="/public/Blog/{self.title}.html", class="flex items-center flex-1 m-14 max-md:m-7 max-sm:m-0 rounded-3xl max-sm:rounded-none")
|