Skip to content

Commit d0e95f9

Browse files
committed
read template file
1 parent dbeef33 commit d0e95f9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@focal/docify",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"license": "MIT",
55
"exports": "./mod.ts",
66
"imports": {

mod.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export default class {
1313
const { pathname } = ctx.request;
1414
const summary = await getSummary();
1515
const content = pathname === "/" ? await getReadme() : await getDocument(pathname);
16+
17+
ctx.response.headers.set("Content-Type", "text/html; charset=utf-8");
1618
return app.engine.render(tmpl, { meta, summary, content });
1719
});
1820

0 commit comments

Comments
 (0)