html automatically added

This commit is contained in:
dachus 2023-02-12 11:26:23 -06:00
parent 9b3e7b1275
commit 44c45c5374
3 changed files with 8 additions and 5 deletions

View File

@ -24,8 +24,8 @@
=+ !<(act=action:blog vase)
?- -.act
%save-file
=* file [%posts file.act]
=* nor `nori:clay`[%& [file %ins %html !>(text.act)]~]
=* fil [%posts (weld file.act /html)]
=* nor `nori:clay`[%& [fil %ins %html !>(text.act)]~]
:_ this
:~ [%pass / %arvo %c %info %blog nor]
[%pass /serve %arvo %e %serve `file.act dap.bowl /gen/blog/hoon ~]
@ -52,7 +52,7 @@
::
[%x %md *]
:: TODO need to put/scry out actual md files
:^ ~ ~ %md
:^ ~ ~ %md :: TODO maybe just use a mime type instead of md
!>(['# %studio test file' ~])
::
==

View File

@ -5,9 +5,11 @@
%- as-octs:mimes:html
.^ @t
%cx
%+ weld
;: weld
/(scot %p p.byk)/blog/(scot r.byk)/posts
(pa:dejs:format [%s url.request])
(pa:dejs:format [%s url.request])
/html
==
==
:_ `(unit octs)``data
`response-header:http`[200 ['Content-Type' 'text/html']~]

1
mar/mime.hoon Symbolic link
View File

@ -0,0 +1 @@
../../base-dev/mar/mime.hoon