robin/maivi
a tiny cute lua web framework
git clone https://git.robinwobin.dev/robin/maivi
897859d
push-srxvuswpkqxx
1return function ( _ , _ ) 2return h . main ( { 3h . article ( { 4class ="text" , 5 6h ( Iter . lst ( maivi . data . sections ) 7: map ( function ( _ , data ) 8local header =h . h1 ( { 9id =data . id , 10data . section , 11} ) 12 13if data . content then 14return h . section ( { 15header , 16data . content and h . raw ( data . content ) or nil , 17} ) 18end 19 20return header 21end ) 22: to ()), 23} ), 24} ) 25end