Skip to content

Instantly share code, notes, and snippets.

@bergwerf
Created February 26, 2017 17:34
Show Gist options
  • Save bergwerf/97c0934b6d9599f560139d08c0ff2e3d to your computer and use it in GitHub Desktop.
Save bergwerf/97c0934b6d9599f560139d08c0ff2e3d to your computer and use it in GitHub Desktop.
HTML template in Dart?
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