-
Notifications
You must be signed in to change notification settings - Fork 0
/
ceci-nest-pas2-md-untemplate.scala
40 lines (32 loc) · 2.47 KB
/
ceci-nest-pas2-md-untemplate.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// DO NOT HAND EDIT -- Autogenerated from 'ceci-nest-pas2.md.untemplate' at 2024-06-18T04:02:12.851865Z
package untemplatedoc
import java.io.{Writer,StringWriter}
import scala.collection.{immutable,mutable}
val Untemplate_ceci_nest_pas2_md = new untemplate.Untemplate[immutable.Map[String,Any],Nothing]:
val UntemplateFunction : untemplate.Untemplate[immutable.Map[String,Any],Nothing] = this
val UntemplateName : String = "ceci_nest_pas2_md"
val UntemplatePackage : String = "untemplatedoc"
val UntemplateInputName : String = "input"
val UntemplateInputTypeDeclared : String = "immutable.Map[String,Any]"
val UntemplateInputTypeCanonical : Option[String] = untemplate.Macro.nonEmptyStringOption( untemplate.Macro.recursiveCanonicalName[immutable.Map[String,Any]] )
val UntemplateInputDefaultArgument : Option[immutable.Map[String,Any]] = Some(immutable.Map.empty)
val UntemplateOutputMetadataTypeDeclared : String = "Nothing"
val UntemplateOutputMetadataTypeCanonical : Option[String] = untemplate.Macro.nonEmptyStringOption( untemplate.Macro.recursiveCanonicalName[Nothing] )
val UntemplateHeaderNote : String = ""
val UntemplateLastModified : Option[Long] = Some(1673166579000L)
val UntemplateSynthetic : Boolean = false
val UntemplateAttributes : immutable.Map[String,Any] = immutable.Map.empty
def apply(input : immutable.Map[String,Any] = immutable.Map.empty) : untemplate.Result[Nothing] =
val writer : StringWriter = new StringWriter(2280)
val attrs : immutable.Map[String,Any] = UntemplateAttributes
var mbMetadata : Option[Nothing] = None
var outputTransformer : Function1[untemplate.Result[Nothing],untemplate.Result[Nothing]] = identity
val block0 = new Function0[String]:
def apply() : String =
"# Ceci n'est pas... " + (math.random) +
"\n\nWell, this is _almost_ just a regular markdown file, with no\nspecial untemplate constructs. But if we wish, we can treat\nit as an unemplate, and it will be immortalized as a scala\nfunction.\n\n"
writer.write(block0())
outputTransformer( untemplate.Result( mbMetadata, writer.toString ) )
end apply
end Untemplate_ceci_nest_pas2_md
def ceci_nest_pas2_md(input : immutable.Map[String,Any] = immutable.Map.empty) : untemplate.Result[Nothing] = Untemplate_ceci_nest_pas2_md( input )