-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
functionField
context matching
#1013
Comments
Okay, so I figured it out—it was the use of |
fwiw, if someone else ends up here by the mention of transcludeContext :: Context a
transcludeContext =
functionField "transclude" $ \args _ ->
case args of
[id'] ->
compilerUnsafeIO
$ transclude id' <$> readFile ("forest/" ++ id' ++ ".md")
_ -> fail "transclude should receive a single argument"
where
transclude id' content = -- some absolutely filthy formatting and string concatenation And my |
Hi there. I am trying to implement a
transclude
context via a function field, it looks like this:And I'm essentially double-compiling the target:
When the context keys match, I see this:
But when I change either the invocation or the definition, I see this
Note that the function field
wtf
is present. I'm not sure what's going on here!The text was updated successfully, but these errors were encountered: