Add ipkg path to idrispost

This commit is contained in:
Nathan McCarty 2025-02-03 23:43:19 -05:00
parent addce4f87c
commit 56833369ce
2 changed files with 20 additions and 0 deletions

View file

@ -13,6 +13,14 @@ unit class IdrisPost does Post is json(:pretty);
#| cheaty way
has Bool:D $.idris = True;
#| Location of the ipkg for the package containing the post
has IO::Path:D $.ipkg
is required
is json(
:to-json(*.Str),
:from-json(*.IO)
);
method title(--> Str:D) {
markdown-title($!source)
}
@ -20,5 +28,10 @@ method title(--> Str:D) {
# Use katla to highlight our file, mangle the resulting output, and then pass it
# through to pandoc for html generation
method render-html(--> Str:D) {
# Do a pack build to make sure we have the needed files
# TODO: Figure out how to only do this once
# Run through katla
# Send output
die "Not implemented";
}