datasette-json-html

Datasette plugin for rendering HTML based on JSON values

APACHE-2.0 License

Downloads
1.3K
Stars
26
Committers
1

Bot releases are hidden (Show)

datasette-json-html - 1.0.1 Latest Release

Published by simonw about 3 years ago

  • Now also tested against Python 3.9.
  • Fixed Jinja2 deprecation warnings. #7
datasette-json-html - 1.0

Published by simonw about 3 years ago

  • 1.0 release reflecting the stability of this plugin
  • Extremely minor documentation improvements
datasette-json-html - 0.6.1

Published by simonw about 4 years ago

  • Switched CI to GitHub Actions
datasette-json-html - 0.6

Published by simonw about 4 years ago

  • Optional description key for links, closes #5

(Actually released January 22nd 2020)

datasette-json-html - 0.5 - tooltips and demos

Published by simonw over 5 years ago

Links can now have tooltips (#2):

{
    "href": "https://simonwillison.net/",
    "label": "Simon Willison",
    "title": "My blog"
}

Also added a live demo and linked to it throughout the README (#3, #1)

datasette-json-html - 0.4.0 - <pre> support

Published by simonw almost 6 years ago

You can use {"pre": "text"} to render text in a <pre> HTML tag:

{
    "pre": "This\nhas\nnewlines"
}

Produces:

<pre>This
has
newlines</pre>

If the value attached to the "pre" key is itself a JSON object, that JSON will be pretty-printed:

{
    "pre": {
        "this": {
            "object": ["is", "nested"]
        }
    }
}

Produces:

<pre>{
  &#34;this&#34;: {
    &#34;object&#34;: [
      &#34;is&#34;,
      &#34;nested&#34;
    ]
  }
}</pre>
Package Rankings
Top 8.79% on Pypi.org
Badges
Extracted from project README
PyPI Changelog Tests License
Related Projects