Skip to content

Releases: a-h/templ

v0.2.408

15 Oct 13:13
@a-h a-h
7234951
Compare
Choose a tag to compare

Changelog

  • 8091aae chore: add coverage icon
  • a66be15 chore: add test for RenderScriptItems
  • fa536dd chore: add test for style element output
  • 9ed1837 chore: add xc badge (#210)
  • 5d177fe chore: fix typo
  • cdff1f3 chore: fix typo in style.go (#188)
  • d0c8d46 chore: split windows and unix specific run commands
  • 82e5757 chore: update CI to debug coverage.out
  • b66adbe chore: update CI to debug coverage.out
  • 66b9b54 chore: update CI to debug coverage.out
  • 47f502e chore: update CI to debug coverage.out
  • 3fa0ebd chore: update docusaurus to v2.4.3
  • dfed041 chore: update generated files
  • 455f2c6 chore: update readme in preparation for awesome-go application (#215)
  • fe940bb doc: add missing () in CSS component example (#194)
  • b3c6039 doc: fix incorrect example output (#190)
  • 6327fb4 doc: fix io.Writer examples (#189)
  • f14d582 feat(docs): add integrations and examples (#203)
  • c1998f6 feat: add Go comment support within templates, fixes #79 and #159
  • 03fc40d feat: add useful error message for incomplete go statements (#216)
  • 3675cda feat: change maximum size of element name to 32 (#212)
  • 528ed0d feat: update templ fmt to format go code within templates (#209)
  • a7895cb fix(fmt): do not introduce additional whitespace where it affects rendering - fixes #213
  • cdb04a6 fix: --cmd breaking with >1 argument, kill child processes correctly (#181)
  • 2fcbab7 fix: apply a templ prefix to all variables that templ uses within a template to reduce clashes, fixes #169 (#183)
  • 7234951 fix: broken benchmark comment formatting and import
  • 8543fac fix: ensure that KV values of true are rendered to output, fixes #195
  • bae4cfd fix: hang after m.Lock in KillAll (caused by #181) (#214)
  • 8509a55 fix: remove excess trailing newline in formatted file (#193)
  • b7531a3 fix: typo in 10-script-templates.md (#176)
  • f48d29b fix: use full sync to reduce jank LSP behaviour
  • 90c2a79 refactor: rename test
  • d917f3d refactor: rename variable

v0.2.364

30 Sep 10:35
@a-h a-h
efd3312
Compare
Choose a tag to compare

Changelog

  • 80ade14 chore: add extra test for comments
  • d1b78e6 chore: add extra test for string spacing
  • 08e1416 chore: add missing full stop
  • 3f5f8d8 chore: bump CI Go and lint tool versions [noci]
  • efd3312 chore: extend tests to cover HTML tags within comments
  • 39e59ab chore: fix linter errors (missing error check for writes)
  • 6b4f03b chore: remove excess logging in test
  • 9d7c432 cleanup unused code and fix tests
  • 92c48d4 feat: add parser benchmark for comparison of changes to parser
  • a4631fc feat: add support for HTML comments in templates (#161)
  • 5482874 feat: warn about invalid templ comment syntax, add docs
  • 0dbcfc3 fix(#112): ensure nix flake runs on Linux by using buildGoModule
  • 331bd73 fix(#144): return non-zero exit code on template generation failure in non-watch mode
  • 2ebb638 fix: add missing support for templ.SafeCSS in optional CSS class expressions, fixes #162
  • 92d3cd1 fix: maintain whitespace around templated values (#156)
  • a277685 fix: normalize input types of CSS middleware (#152)
  • 0244fef fixing comment https://github.com/a-h/templ/issues/87\#issuecomment-1735297140
  • 4deabea refactor: minor typos, capitlisation
  • fd73ec4 update how conditional attrs are indented
  • 9c2ffb6 updated formatting to suggested style in #87

v0.2.334

08 Sep 20:28
@a-h a-h
4f2b0bc
Compare
Choose a tag to compare

Changelog

  • 5d4f365 chore: bump NPM version for docs
  • fc8328a chore: re-generate example with latest binary
  • d4573c2 chore: regenerate template files, see previous commit
  • 2f0245f chore: update Go benchmark to include Go templates
  • 9b00e0c feat(#128): templ fmt: don't overwrite the file if it hasn't changed
  • 5e8644b feat: hot reload, fixes #82 (#130)
  • a34b18c feat: parse single quote attributes (#125)
  • af81962 feat: skip walking directories with dot or underscore prefixes, or that are called vendor/node_modules to reduce time wasted walking dirs
  • 4f2b0bc feat: support script templates for hx-on attributes (#134)
  • 93234fb fix a snippet (#142)
  • 109dec9 fix(#131): do not sanitize constant CSS properties within CSS templates
  • 86d87b4 fix(lsp): file incorrectly updated when importing modules, fixes #135 (#136)
  • 00e5cbe fix: docs: 03-syntax: 08-template: show correct html output (#129)
  • 704ed22 refactor: improve render performance by ~1.5%
  • 35183ac refactor: update React benchmarks

v0.2.316

16 Aug 09:32
@a-h a-h
5b810fa
Compare
Choose a tag to compare

Changelog

  • 5b810fa fix: replace new lines in constant attributes with escaped new lines (#124)

v0.2.315

06 Aug 20:12
@a-h a-h
df253a6
Compare
Choose a tag to compare

Changelog

  • d70d23c chore: run lint
  • f321384 feat: improve rendering performance by combining sequential string constant writes, fixes #96
  • 5604e60 fix(#108): ensure void elements have CSS and script attributes pre-processed
  • fb4fc61 fix: allow hyperscript style attributes, and attributeNameSubsequent is a superset of attributeNameFirst (#107)
  • df253a6 fix: allow underscores in template calls (#118)
  • 2b3cf9d fix: bool constants can be followed by > (#119)
  • 5bdaaab fix: fmtcmd - actually use the dir parameter (#110)
  • 4ecac5d fix: stop HTMX example creating nested form elements

v0.2.304

20 Jun 08:03
@a-h a-h
e479ad1
Compare
Choose a tag to compare

Changelog

  • 270d27e chore: apply go fmt to internal templates
  • 8e50c44 chore: bump doc dependencies
  • f494849 feat: format generated code with gofmt (#102)
  • e479ad1 fix: don't send messages to the LSP about irrelevant content, fixes #100, #85
  • 8a5fc57 refactor: minor lint

v0.2.296

16 Jun 06:41
@a-h a-h
12d06af
Compare
Choose a tag to compare

Changelog

  • 64dcc0c chore: fix linter error (ineffective assign)
  • 5603fc3 chore: fix linter error (unused var)
  • e1ca5e2 chore: standardise output formatting
  • acea959 feat: allow preceeding dash in css ident token (#89)
  • 67b2d87 feat: else if support
  • 7efc71c fix(#87): templ expression elements formatted incorrectly when inline
  • c160cc4 fix(86): ensure that templ elements can be parsed, even if they're on the same line as other content
  • 461f5b7 fix: parse @attr, :attr, and x:attr attribute names (#84)
  • 814273a fix: support package names in templ element expressions (#86)
  • 12d06af refactor: improve clarity of raw CSS and script test

v0.2.282

28 Apr 14:47
@a-h a-h
d517710
Compare
Choose a tag to compare

Changelog

  • 2b59b10 Block element fix (#71)
  • 4d5fd18 chore: add job to check templ generate has been ran (#76)
  • 4add6ae chore: set cache directory of docs build
  • 37cdf9b chore: set working directory of docs build
  • ac820cd chore: update doc generated code
  • e2367ef feat: add CLI docs
  • 3c0c2b7 feat: add Nix development flake with Neovim config
  • 74c60d3 feat: add docusaurus (#69)
  • fb6d392 feat: add support for conditional HTML attributes, fixes #65 (#66)
  • 0502c6b feat: add templ binary to the Nix Flake output
  • caa55eb feat: initial templ highlighting (#77)
  • 17abab8 feat: update social-card (#70)
  • cd9acc3 feat: update templ CSS class, fixes #61 (#67)
  • da42500 feat: use the number of CPUs in the machine as the default worker count
  • 8cafe49 fix: css rendering
  • a6d664d fix: empty string expressions should not result in invalid Go code
  • df74d04 fix: expression attributes should be resolved in conditionals (#75)
  • cda95b2 fix: linter warnings
  • 8072edc fix: linter warnings
  • 099cd06 fix: stop errors creating a logger from logging the error with itself
  • c009aa0 refactor: migrate to generic parser
  • 086703c refactor: switch to htmlformat
  • 617bc84 refactor: update tests to normalise HTML handling
  • 8d1dd95 refactor: update the example to improve database performance, and introduce layering
  • 4256f8e refactor: use built-in Go 1.20

v0.2.233

27 Mar 09:29
@a-h a-h
2fccbf3
Compare
Choose a tag to compare

Changelog

  • 2fccbf3 fix: LSP multi-line deletions

v0.2.232

26 Mar 20:40
@a-h a-h
0e4834d
Compare
Choose a tag to compare

Changelog

  • 3c69367 chore: change goreleaser options due to deprecation
  • 2fa1f0d feat: add Go 1.20 integration test coverage metrics
  • 5df4da6 fix: ensure that newlines on single line diagnostics are included
  • 2db5e03 fix: incorrect document handling during LSP changes
  • 0e4834d refactor: merge additional unit tests