- added social card feature
renderSocialCard
function to render html meta tags for open graph protocol, to make your page's links fancy on social media like facebook and discordSocialCard
type for the parametersasSocialCard
helper identity function for the params
- updated dependencies
- fixed watch mode
- make rollup
--silent
unless turtle receives--verbose
param
- cleanup annoying rollup warnings
- switch to
npm exec
fromnpx
, i dunno it's supposed to be better?
- ! all-new turtle cli
- changed the way bundling works, now support rollup, see
turtle --help
- reworked
startup_scripts_with_dev_mode
to support multiple scripts/bundles
- changed the way bundling works, now support rollup, see
- ! execute turtle scripts before the html build stage
- this allows you to write files that can be hash-versioned in your templates
- add
read_file
function
- ! replace
startup_scripts_with_debug_mode
with the newstartup_scripts_with_dev_mode
- if the website url location host starts with
localhost
or192.
, dev mode is enabled ?dev=false
force-disables dev mode (loads the bundle)?dev=true
force-enables dev mode (loads es modules)- the new routine adds the prefix
[dev]
to the document title, to make it obvious when you're in dev mode
- if the website url location host starts with
- add common boilerplate scripts and patterns
- export 'PathRouter' from "@benev/turtle"
- ! rename
HtmlTemplate
toHtml
- ! rename
webpage
totemplate
- ! overhaul replaces template basics
v
andbase
with newpath
system- now instead of
v("/style.css")
you want to dopath(import.meta.url).version.root("style.css")
- see more detail on
path
in the readme
- now instead of
- !
HashVersionerError
replaced byHashingError
- ! rename cli arg
excludes
toexclude
script_directory
is now provided to turtle scripts- reworked
base
calculation - errors now print stack traces