All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ossilphant_3.0.0.2.source-code.layout-main-html-untemplate.scala Maven / Gradle / Ivy

// DO NOT HAND EDIT -- Autogenerated from 'layout-main.html.untemplate' at 2023-09-25T05:41:50.536879Z
package com.mchange.fossilphant.theme.tower

import java.io.{Writer,StringWriter}
import scala.collection.*

import com.mchange.fossilphant.*

import unstatic.UrlPath.Rooted

val Untemplate_layout_main_html = new untemplate.Untemplate[MainLayoutInput,Nothing]:
  val UntemplateFunction                    : untemplate.Untemplate[MainLayoutInput,Nothing] = this
  val UntemplateName                        : String = "layout_main_html"
  val UntemplatePackage                     : String = "com.mchange.fossilphant.theme.tower"
  val UntemplateInputName                   : String = "input"
  val UntemplateInputTypeDeclared           : String = "MainLayoutInput"
  val UntemplateInputTypeCanonical          : Option[String] = untemplate.Macro.nonEmptyStringOption( untemplate.Macro.recursiveCanonicalName[MainLayoutInput] )
  val UntemplateInputDefaultArgument        : Option[MainLayoutInput] = (None : Option[MainLayoutInput])
  val UntemplateOutputMetadataTypeDeclared  : String = "Nothing"
  val UntemplateOutputMetadataTypeCanonical : Option[String] = untemplate.Macro.nonEmptyStringOption( untemplate.Macro.recursiveCanonicalName[Nothing] )
  val UntemplateHeaderNote                  : String = ""

  val UntemplateAttributes : immutable.Map[String,Any] = immutable.Map.empty


  def apply(input : MainLayoutInput) : untemplate.Result[Nothing] =
    val writer             : StringWriter = new StringWriter(7830)
    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 =
          "\n\n  \n    \n    \n    \n    " + ( input.title ) +
          "\n  \n  \n    
\n
" + ( input.title ) + "
\n
" + ( input.tagline ) + "
\n " + ( input.topnav ) + "\n
\n
\n
\n
" + ( input.content ) + "
\n
\n
\n " + ( input.bottomnav ) + "\n
\n Produced with fossilphant.\n
\n
\n \n\n" writer.write(block0()) outputTransformer( untemplate.Result( mbMetadata, writer.toString ) ) end apply end Untemplate_layout_main_html def layout_main_html(input : MainLayoutInput) : untemplate.Result[Nothing] = Untemplate_layout_main_html( input )




© 2015 - 2025 Weber Informatics LLC | Privacy Policy