Created
February 26, 2017 17:34
-
-
Save bergwerf/97c0934b6d9599f560139d08c0ff2e3d to your computer and use it in GitHub Desktop.
HTML template in Dart?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renderPage() => | |
html( | |
head([ | |
title('Create category'), | |
defaultHead(), | |
style(include('../../styles/treeselect.css')), | |
]), | |
body([ | |
breadcrumb(), | |
container([ | |
form(action: '/category/create', method: 'POST', c: [ | |
formGroup([ | |
input( | |
type: 'hidden', | |
name: 'subject.descriptor.translations.0.locale.code', | |
value: 'en_US'), | |
label(forInput: 'subject.descriptor.translations.0.content'), | |
input( | |
type: 'text', | |
name: 'subject.descriptor.translations.0.content') | |
]) | |
]) | |
]) | |
]) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment