Remove DotLiquid (#47)
This commit is contained in:
@@ -190,15 +190,12 @@ let options () =
|
||||
it
|
||||
|
||||
open Giraffe.Htmx.Common
|
||||
open Fluid.Ast
|
||||
|
||||
/// <summary>Fluid parser customized with myWebLog filters and tags</summary>
|
||||
let parser =
|
||||
// spacer
|
||||
let s = " "
|
||||
// Required return for tag delegates
|
||||
let ok () =
|
||||
VTask<Fluid.Ast.Completion> Fluid.Ast.Completion.Normal
|
||||
|
||||
let s = " "
|
||||
let it = FluidParser()
|
||||
|
||||
// Create various items in the page header based on the state of the page being generated
|
||||
@@ -264,7 +261,7 @@ let parser =
|
||||
let url = app.WebLog.AbsoluteUrl(Permalink app.Page.Permalink)
|
||||
writer.WriteLine $"""{s}<link rel=canonical href="{url}">"""
|
||||
|
||||
ok ())
|
||||
VTask(Completion.Normal))
|
||||
|
||||
// Create various items in the page footer based on the state of the page being generated
|
||||
it.RegisterEmptyTag("page_foot",
|
||||
@@ -284,7 +281,7 @@ let parser =
|
||||
themeAsset (StringValue "script.js") context
|
||||
|> sprintf "%s<script src=\"%s\"></script>" s
|
||||
|> writer.WriteLine
|
||||
ok ())
|
||||
VTask(Completion.Normal))
|
||||
|
||||
// Create links for a user to log on or off, and a dashboard link if they are logged off
|
||||
it.RegisterEmptyTag("user_links",
|
||||
@@ -302,7 +299,7 @@ let parser =
|
||||
"</ul>"
|
||||
}
|
||||
|> Seq.iter writer.WriteLine
|
||||
ok ())
|
||||
VTask(Completion.Normal))
|
||||
|
||||
it
|
||||
|
||||
|
||||
Reference in New Issue
Block a user