Skip to content

Instantly share code, notes, and snippets.

@nycki93
Created June 25, 2023 01:32
Show Gist options
  • Select an option

  • Save nycki93/a2463e80511afe2480ea13b032949dcf to your computer and use it in GitHub Desktop.

Select an option

Save nycki93/a2463e80511afe2480ea13b032949dcf to your computer and use it in GitHub Desktop.
nift json html test
(
html
:lang en
(meta :encoding utf-8)
(title "My Website")
(style ":root" (:text-align center))
(h1 "Hello World!")
(br)
(p "Lorem ipsum dolor sit amet")
)
---
{
'0': 'html',
'1': { '0': 'meta', encoding: 'utf-8', length: 1 },
'2': [ 'title', 'My Website' ],
'3': [ 'style', ':root', { 'text-align': 'center' } ],
'4': [ 'h1', 'Hello World!' ],
'5': [ 'br' ],
'6': [ 'p', 'Lorem ipsum dolor sit amet' ],
lang: 'en',
length: 7
}
---
<!doctype html>
<html lang="en">
<meta encoding="utf-8">
<title>
My Website
</title>
<style>
:root {
text-align: center;
}
</style>
<h1>
Hello World!
</h1>
<br>
<p>
Lorem ipsum dolor sit amet
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment