Skip to content

Releases: epuber-io/bade

v0.3.10

Choose a tag to compare

@samnung samnung released this 01 Jun 13:52

What's Changed

  • Fix not escaping tag attributes (when using Bade's tag syntax: div(class: '&"') will break result XML/HTML)

Full Changelog: v0.3.9...v0.3.10

v0.3.8

Choose a tag to compare

@samnung samnung released this 26 Oct 17:46

What's Changed

  • fix(generator): dynamic values in require_relative by @samnung in #37

Full Changelog: v0.3.7...v0.3.8

v0.3.7

Choose a tag to compare

@samnung samnung released this 16 Oct 11:05
  • Hotfix: remove accidental print to console

Full Changelog: v0.3.6...v0.3.7

v0.3.6

Choose a tag to compare

@samnung samnung released this 16 Oct 11:05

What's Changed

Full Changelog: v0.3.5...v0.3.6

Bade v0.3.5

Choose a tag to compare

@samnung samnung released this 04 May 12:08

Released 2022-05-04

  • Fix issues when using multiline Ruby code #35

Full Changelog: v0.3.4...v0.3.5

Bade v0.3.4

Choose a tag to compare

@samnung samnung released this 29 Mar 16:41

Released 2022-03-29

What's Changed

  • GlobalsTracker - do not delete constants from files from required files by @samnung in #34

Full Changelog: v0.3.3...v0.3.4

Bade v0.3.3

Choose a tag to compare

@samnung samnung released this 29 Mar 16:40

Released 2022-03-22

  • Fix formatting error messages (correct is overriding #to_s instead of #message)

Full Changelog: v0.3.2...v0.3.3

Bade v0.3.2

Choose a tag to compare

@samnung samnung released this 22 Mar 14:15

Released 2022-03-22

  • Improve error messages and locations
  • Resolve infinite loop when requiring not existing library #19

Full Changelog: v0.3.1...v0.3.2

Bade v0.3.1

Choose a tag to compare

@samnung samnung released this 22 Mar 08:12

Released 2022-03-22

Added option to filter constants to remove when using GlobalsTracker
Bade::Runtime::GlobalsTracker.new(constants_location_prefixes: ['/Users/xyz/Projects/abc'])

Full Changelog: v0.3.0...v0.3.1

Bade v0.3.0

Choose a tag to compare

@samnung samnung released this 21 Mar 14:10

Released 2022-03-21

Breaking changes:

Dropped support for Ruby 2.4 and older.

Changes:

Added support for optional positional parameters in mixin (#17)

#17

mixin some_mixin(param = 1)
Added support for required key-value parameters in mixin Example:
mixin some_mixin(param:)
Backtrace of error from template (#7)

#7

When some error is raised, it will return position of the error. Given this template:

mixin m()
  a
    - raise StandardError

+m

It will produce following error:

Exception raised during execution of mixin `m`: StandardError
template backtrace:
  template.bade:3:in `+m'
  template.bade:5:in `<top>'
Added keyword yield for invoking default block in mixin (#4)

Previous solution:

mixin first
  p.first
    - default_block.call

+first Some text

New solution:

mixin first
  p.first
    yield

+first Some text

Which produces:

<p class="first">Some text</p>

Full Changelog: v0.2.5...v0.3.0