./textproc/ruby-tilt, Generic interface to multiple Ruby template engines

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.4.0, Package name: ruby32-tilt-2.4.0, Maintainer: pkgsrc-users

Tilt is a thin interface over a bunch of different Ruby template engines in
an attempt to make their usage as generic as possible. This is useful for web
frameworks, static site generators, and other systems that support multiple
template engines but don't want to code for each of them individually.

The following features are supported for all template engines (assuming the
feature is relevant to the engine):

* Custom template evaluation scopes / bindings
* Ability to pass locals to template evaluation
* Support for passing a block to template evaluation for "yield"
* Backtraces with correct filenames and line numbers
* Template file caching and reloading
* Fast, method-based template source compilation

The primary goal is to get all of the things listed above right for all
template engines included in the distribution.


Required to run:
[lang/ruby31-base]

Master sites:

Filesize: 25.5 KB

Version history: (Expand)


CVS history: (Expand)


   2023-09-20 15:40:05 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
textproc/ruby-tilt: update to 2.3.0

2.3.0 (2023-09-14)

* Remove deprecated support for non-string template code in PrawnTemplate
  (jeremyevans)
* Remove deprecated support for
  {ERB,Erubis}Template#default_output_variable{,=} (jeremyevans)
* Remove deprecated support for CoffeeScriptTemplate.default_no_wrap{,=}
  (jeremyevans)
* Remove deprecated support for RedCarpet 1.x (jeremyevans)
* Remove deprecated support for Tilt.current_template (jeremyevans)
* Make Template#freeze_string_literals? work correctly with
  Template#compiled_path (jeremyevans)
* Support :freeze option for StringTemplate to support frozen string
  literals (jeremyevans)
* Make Tilt.finalize! a no-op if it has already been called (jeremyevans)
   2023-06-09 17:06:31 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
textproc/ruby-tilt: update to 2.2.0

2.2.0 (2023-06-05)

* Remove deprecated BlueCloth, Less, and Sigil support (jeremyevans)
* Drop support for RDoc < 4 (jeremyevans)
* Deprecate Tilt::Cache (jeremyevans)
* Deprecate Tilt.current_template (jeremyevans)
* Deprecate support for RedCarpet 1.x (jeremyevans)
* Deprecate CoffeeScriptTemplate.default_no_wrap{,=} aliases of
  default_bare{,=} (jeremyevans)
* Deprecate {ERB,Erubis}Template#default_output_variable{,=} (jeremyevans)
* Deprecate non-string template code in PrawnTemplate (jeremyevans)
* Deprecate default lazy loading of handlebars/org/emacs_org/jbuilder
  external template engines (jeremyevans)
* Handle locals as a local variable in templates (timriley) (#3)
* Do not cache output in PrawnTemplate#evaluate (jeremyevans)
* Do not mark PrawnTemplate as not allowing script, since it can be used to
  execute arbitrary Ruby code (jeremyevans)
* Remove Redcarpet1Template and Redcarpet2Template from the RedCarpet
  support (jeremyevans)
* Separate CoffeeScriptTemplate.default_bare and
  CoffeeScriptLiterateTemplate.default_bare (jeremyevans)
* Fix possible issue in KramdownTemplate under concurrent use (jeremyevans)
* Do not define yield tag for RadiusTemplate if no block is given to render
  (jeremyevans)
* Avoid holding mutex while compiling template methods (jeremyevans)
* Template#prepare no longer needs to be overridden if no preparation work
  is needed (jeremyevans)
* Fix potential concurrency issues in Mapping (jeremyevans)
* Stop modifying given locals hash in tilt/prawn (jeremyevans)
* Change visibility of Template#compiled_method to public (jeremyevans)
* Add Tilt::StaticTemplate for templates that return the same output for
  every render (jeremyevans)
* Add Tilt::Mapping#finalized and Tilt.finalize! for finalized mappings that
  do not require mutex synchronization (jeremyevans)
* Add frozen_string_literal magic comment to all source files (jeremyevans)
* Support templates with frozen compiled source code (jeremyevans)
* Support :skip_compiled_encoding_detection template option to not scan
  compiled source code for encoding lines (jeremyevans)
* Ship slim template support with tilt (minad) (#4)
* Template#extract_{encoding,magic_comment} private methods now require a
  block (jeremyevans)

The repository switched to https://github.com/jeremyevans/tilt, so issue
references above are for that repository, and issue references below are for
the previous repository (https://github.com/rtomayko/tilt).
   2023-02-23 16:38:27 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
textproc/ruby-tilt: update to 2.1.0

2.1.0 (2023-02-17)

* Use UnboundMethod#bind_call on Ruby 2.7+ for better performance (#380,
  jeremyevans)
* Add Tilt::Template#freeze_string_literals? for freezing string literals in
  compiled templates (#301, jeremyevans)
* Use Haml::Template for Tilt::HamlTemplate if available (Haml 6+) (#391,
  ntkme)
* Deprecate BlueCloth, Less, and Sigil support (#382, jeremyevans)
* Add Template#compiled_path accessor to save compiled template output to
  file (#369, jeremyevans)
* Add Mapping#unregister to remove registered extensions (#376, jeremyevans)
* Add Mapping#register_pipeline to register template pipelines (#259,
  jeremyevans)
* Remove Tilt::Dummy (#364, jeremyevans)
* Ensure Mapping#extensions_for returns unique values (#342, mojavelinux)
* Remove opal support, since the the opal API changed (#374, jeremyevans)
* Remove .livescript extension for LiveScript (#374, jeremyevans)
* Set required_ruby_version in gemspec (#371, jeremyevans)
   2022-08-30 17:43:04 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
textproc/ruby-tilt: update to 2.0.11

2.0.11 (2022-07-22)

* Fix #extensions_for for RedcarpetTemplate (judofyr)
* Support the new sass-embedded gem (#367, ntkme)
* Add Tilt::EmacsOrg support (#366, hacktivista)
* Improve rendering of BasicObject instances (#348, jeremyevans)
* Fix Ruby 3.0 compatibility (#360, voxik)
   2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161)
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
   2021-10-07 17:02:49 by Nia Alarie | Files touched by this commit (1162)
Log message:
textproc: Remove SHA1 hashes for distfiles
   2020-03-24 18:18:01 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
textproc/ruby-tilt: update to 2.0.10

Update ruby-tilt to 2.0.10.

2.0.10 (2019-09-23)

* Remove test files from bundled gem (#339, greysteil)
* Fix warning when using yield in templates on ruby 2.7 (#343, jeremyevans)
   2018-12-22 18:31:03 by Takahiro Kambe | Files touched by this commit (2)
Log message:
textproc/ruby-tilt: fix ALTERNATIVES file

Fix ALTERNATIVES file syntax.

Bump PKGREVISION.