From 3715af8a44032b9e64ff154750d114d14a5a94e4 Mon Sep 17 00:00:00 2001 From: Joseph Dykstra Date: Tue, 12 Mar 2019 09:24:17 -0500 Subject: [PATCH] Fix indentation Based on the number of end-parens `)` on line 323, the rest of the example was indented too far. --- index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index d4130dc..a74cd43 100644 --- a/index.html +++ b/index.html @@ -321,13 +321,13 @@

Example

h('li', 'one'), h('li', 'two'), h('li', 'three'))), - h('h2', 'content title', { style: {'background-color': '#f22'} }), - h('p', - "so it's just like a templating engine,\n", - "but easy to use inline with javascript\n"), - h('p', - "the intention is for this to be used to create\n", - "reusable, interactive html widgets. ")) + h('h2', 'content title', { style: {'background-color': '#f22'} }), + h('p', + "so it's just like a templating engine,\n", + "but easy to use inline with javascript\n"), + h('p', + "the intention is for this to be used to create\n", + "reusable, interactive html widgets. "))

h (tag, attrs, [text?, Elements?,...])

Create an HTMLElement. first argument must be the tag name.

classes & id