~singpolyma/dhall-html

08fb8cee067e53929033ba78e7406bbff13549b5 — Stephen Paul Weber 11 months ago f243bbf master
Helper for text-only child
1 files changed, 10 insertions(+), 0 deletions(-)

M elements.dhall
M elements.dhall => elements.dhall +10 -0
@@ 66,6 66,16 @@ concatMap Text (Map/Entry Text Text)
						attributes = XML.emptyAttributes,
						content = content
					}''
		},
		{
			mapKey = "${el}/",
			mapValue = ''
				\(content: Text) ->
					XML.element {
						name = ${Text/show el},
						attributes = XML.emptyAttributes,
						content = [XML.text content]
					}''
		}
]) elements
#