robin/maivi
a tiny cute lua web framework
git clone https://git.robinwobin.dev/robin/maivi
1be4c9c
push-srxvuswpkqxx
1local function headcomment () 2return h . comment ( [[ 3Copyright 2026 robinwobin 4Licensed under EUPL-1.2; you may not use this file except in compliance with the License. 5You may obtain a copy of the License at 6https://codeberg.org/comfysage/maivi/src/branch/main/LICENSE 7 8Source is available at https://codeberg.org/comfysage/maivi/src/branch/main/docs 9]] ) 10end 11 12return function ( _ ) 13return h ( { 14headcomment (), 15h . document ( { 16h . head ( { 17h . meta ( { charset ="utf-8" } ), 18h . meta ( { 19name ="viewport" , 20content ="width=device-width, initial-scale=1" , 21} ), 22h . meta ( { name ="color-scheme" , content ="dark" } ), 23h . meta ( { name ="darkreader-lock" } ), 24 25h . title ( "maivi :3" ), 26h . meta ( { name ="author" , content ="robinwobin" } ), 27h . meta ( { 28name ="description" , 29content ="a tiny cute lua web framework" , 30} ), 31h . link ( { rel ="canonical" , href =this . base_url } ), 32 33h . meta ( { property ="og:title" , content ="maivi :3" } ), 34h . meta ( { property ="og:url" , content =this . base_url } ), 35h . meta ( { property ="og:site_name" , content ="maivi docs" } ), 36h . meta ( { 37property ="og:description" , 38content ="a tiny cute lua web framework" , 39} ), 40h . meta ( { property ="og:type" , content ="website" } ), 41 42h . meta ( { name ="theme-color" , content ="#febdd4" } ), 43 44h . link ( { rel ="icon" , href ="/favicon.svg" } ), 45h . link ( { 46rel ="mask-icon" , 47href ="/favicon.svg" , 48color ="#febdd4" , 49} ), 50 51h . style ( 52---@language css 53[[ @layer reset, theme, base, layout, components, partials, page, media; ]] 54), 55-- reset 56h . stylesheet ( { href ="/styles/reset.css" } ), 57h . stylesheet ( { href ="/styles/media.css" } ), 58h . stylesheet ( { href ="/styles/fonts.css" } ), 59h . stylesheet ( { href ="/styles/base.css" } ), 60h . stylesheet ( { href ="/styles/colors.css" } ), 61h . stylesheet ( { href ="/styles/text.css" } ), 62h . stylesheet ( { href ="/styles/style.css" } ), 63h . stylesheet ( { href ="/styles/syntax.css" } ), 64 65h . script ( { 66defer ="" , 67type ="module" , 68src ="https://cdn.jsdelivr.net/npm/microlighter@2.2.0/dist/microlighter.min.js" , 69} ), 70} ), 71h . body ( { 72h . div ( { 73id ="root-bg" , 74h . div ( { 75id ="root-bg-noise" , 76h . svg ( { 77width ="0" , 78height ="0" , 79h . filter ( { 80id ="noise" , 81maivi . elem ( "feTurbulence" , { empty =true } )( { 82type ="fractalNoise" , 83baseFrequency =".66" , 84numOctaves ="3" , 85stitchTiles ="stitch" , 86result ="noise" , 87} ), 88maivi . elem ( "feBlend" , { empty =true } )( { 89[ "in" ] ="SourceGraphic" , 90in2 ="noise" , 91mode ="multiply" , 92} ), 93} ), 94} ), 95} ), 96} ), 97h . div ( { 98id ="root" , 99h . div ( { 100id ="page" , 101maivi . mod ( "sidebar" ), 102maivi . mod ( "content" ), 103} ), 104} ), 105} ), 106} ), 107} ) 108end