Announcing dhall-rails!

(Stephen Paul Weber) #1

Allowing you to use Dhall anywhere a Rails app currently uses YAML!

Rails-related YAML files are actually almost always YAML+ERB, begging for a more structured templating language. The one exception, and IMO coolest demo, is the Rails I18n system which under Dhall can now do things like this:

  en = {
    ducks = \(translation_name: < ducks >) -> \(args: { count: Natural }) ->
      "${Natural/show args.count} ducks"