Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/hanami/view

Views, templates and presenters for Ruby web applications
https://github.com/hanami/view

Use keyword args for accepting input

This allows us to remove some of the “special” options (`format`, `context`, and `locals`) befor...

e2703e950545363cc2c0b6fe057024342bb2f10c authored almost 8 years ago by Tim Riley <[email protected]>
Simplify setup for integration tests

We had a “subtitle” local being passed to test plain strings being used as view parts, which isn...

33ae15d49598236a94484719f5c3ec5e10f747c5 authored almost 8 years ago by Tim Riley <[email protected]>
Rename “view” to “view controller” in integration tests

af61b7d92f3c67ef7560936ce8c5092c2b189f9b authored almost 8 years ago by Tim Riley <[email protected]>
Merge pull request #28 from dry-rb/change-scope-method-resolution-order

Resolve methods from scope in order of data, context, partials

2bbb23a88e71a201d49aa6c360a41f67482791b6 authored almost 8 years ago by Tim Riley <[email protected]>
Resolve methods from scope in order of data, context, partials

This reduces the risk of partials with names conflicting with data causing problems.

051d47d62753206926c9dbb81dc4e1925c422683 authored almost 8 years ago by Tim Riley <[email protected]>
Merge pull request #27 from dry-rb/inferred-engines

Support multiple template languages by inferring engine from template name

72973364044d0d21d7cc8aa7e0e13cd944c961e9 authored almost 8 years ago by Tim Riley <[email protected]>
Make quotes consistent

fb2347d438d56b72b9a74b97c12d60970021fbbb authored almost 8 years ago by Tim Riley <[email protected]>
Update benchmark

19e879ed8defb911437691fed39c4d04b7a1aab4 authored almost 8 years ago by Tim Riley <[email protected]>
Specify default_format and infer Tilt engine to use from template name

This change means we now support multiple template engines, and can do so without having to expl...

d2f0e72705728dfa4b66d8c5a4870670b30b0d19 authored almost 8 years ago by Tim Riley <[email protected]>
Merge pull request #26 from dry-rb/common-context

Make a shared context available across layouts, templates and partials

3766b875a85a20b2fcd2a6fee7856b39e673c425 authored almost 8 years ago by Tim Riley <[email protected]>
Filter out spec files in SimpleCov

f38e0493f8592fbab0b3ce53d145c7bd2d2479ed authored almost 8 years ago by Tim Riley <[email protected]>
Use local config

391443e26611d17048d5684282ab561d299c4794 authored almost 8 years ago by Tim Riley <[email protected]>
Make a shared context available across layouts, templates and partials

9e1c0e58daf4b90fcaa28328b1286df33c771048 authored almost 8 years ago by Tim Riley <[email protected]>
Merge pull request #25 from dry-rb/abandon-parts

Replace parts with a single top-level scope

43dedc2f582d4306faf07540d0bd53c5f0c5bc1b authored almost 8 years ago by Tim Riley <[email protected]>
Make Scope#_render private and add unit tests

6b354053bbfa99aa51d9f3297c62e6e78387080d authored almost 8 years ago by Tim Riley <[email protected]>
Replace parts with a simple top-level template scope

6b502746aa73339424b4f3f3fcd166ff1a82c1fd authored almost 8 years ago by Tim Riley <[email protected]>
Merge pull request #24 from dry-rb/rename-layout-scope-part-to-layout

Rename layout parts and scope options

1b23d1ba80e81de5e6a8afaf32e222dc47ec1739 authored almost 8 years ago by Tim Riley <[email protected]>
Rename "scope" option to "layout_scope"

This makes the option clearer, since the scope in this case is _only_ applied to the layout, not...

4059a63fd7d3af199eeaceb579e4882558f5f2a3 authored almost 8 years ago by Tim Riley <[email protected]>
Rename layout scope part from `page` to `layout`

As a name, "layout" seems more fitting and expected than "page", given there's no such concept a...

84a5dffa2defa49c3d0a01db0bb79ca53e3e1988 authored almost 8 years ago by Tim Riley <[email protected]>
Merge pull request #23 from dry-rb/wrap-partial-arguments-in-parts

Unify handling of additional partial args and run through Part.build

a864bcaf68fbb5c6d2fc0c1d98f0cd021f2dc290 authored almost 8 years ago by Tim Riley <[email protected]>
Tweak arg name

352339049c2b708536cfa5697f3a4a8f390454cf authored almost 8 years ago by Tim Riley <[email protected]>
Unify handling of additional partial args and run through Part.build

b92b63dcb2bdeaf4c12e482e65fccadc2e69ea53 authored almost 8 years ago by Tim Riley <[email protected]>
Merge pull request #22 from dry-rb/centralize-part-construction

Move all part construction logic into Part.build

8c91938198f0bf43a899f0e31f4da3cbe9cfcb07 authored almost 8 years ago by Tim Riley <[email protected]>
Require Ruby 2.1.0 or higher

c5246347cc4f349fc893f4cae218fc9538c07e59 authored almost 8 years ago by Tim Riley <[email protected]>
Move all part construction logic into a new Part.build method

This makes the controller’s job much simpler, and will make it possible to construct parts from ...

4905a212a0ff192c852bfb04a7e70099438b38bb authored almost 8 years ago by Tim Riley <[email protected]>
Merge pull request #21 from kwando/patch-1

Make message for TemplateNotFoundError more readable

2884c9df78597c043794012b7b84a3e031cf7ab5 authored almost 8 years ago by Tim Riley <[email protected]>
Make message for TemplateNotFoundError more readable

c7a6cb135502f8f842688544bb7732d75ed625c0 authored almost 8 years ago by Hannes Nevalainen <[email protected]>
Remove extra map

a8af2b3647a062a4858505b2e3def4e448bb6d2e authored about 8 years ago by Tim Riley <[email protected]>
Merge pull request #19 from dry-rb/named-or-falsey-layouts

Allow falsey layout values to disable rendering of layout

42edfff914edc4a9825d1b9963c7cd4b39800edc authored about 8 years ago by Tim Riley <[email protected]>
Allow views to render without a layout

65c0fe8f2317ed4a7c15988b3bf7acc04c14ba0f authored about 8 years ago by Tim Riley <[email protected]>
Clarify naming of default layouts dir

dbe8fdf8459a3abe78e7e1bed8a88c187e6d3231 authored about 8 years ago by Tim Riley <[email protected]>
Merge pull request #18 from dry-rb/exposures

Use exposures to prepare view locals

51a6b84e83ad7279e85762b445ba22e52cf8c347 authored about 8 years ago by Tim Riley <[email protected]>
Tweak coverage handling on CI

b1ce59940ff4aefec563cf1dc9ee463debfa8e77 authored about 8 years ago by Tim Riley <[email protected]>
Don’t require exposure input arg to be named `input`

Instead, the input will go to the first argument provided it’s not already matching the name of ...

e7174ca18c8a3918111bcdbce7d8e037fa7e52c0 authored about 8 years ago by Tim Riley <[email protected]>
Add Ruby 2.4 and bump other Ruby versions on Travis

e31a033aa7ad40955f6c86d635a7523e9230d731 authored about 8 years ago by Tim Riley <[email protected]>
Use Ruby 2.0-compatible kwargs in specs

ab0575b006bef0428dda4449287f5cbf6c074b5c authored about 8 years ago by Tim Riley <[email protected]>
Add subscript accessor for exposures

21e020fc1c7e003fd167f33099b81362354226b2 authored about 8 years ago by Tim Riley <[email protected]>
Relax exposure proc parameter checking to support procs given as blocks

ca655403557f18e4b9bda5dc4b140c773daa80e1 authored about 8 years ago by Tim Riley <[email protected]>
Add unit tests for Exposures

a74774fe631c52633706d75882ed89698a3a2052 authored about 8 years ago by Tim Riley <[email protected]>
Rename block to proc in Exposures#add

232d646336f13516ea358e6b8705071dc3e5f819 authored about 8 years ago by Tim Riley <[email protected]>
Add checks for an exposure proc’s parameters

650fc405a30655bff03ce9b5a86dec51c36a1a6b authored about 8 years ago by Tim Riley <[email protected]>
Add unit tests for Exposure

5654693aa000db898bc112e18ff5b35749380755 authored about 8 years ago by Tim Riley <[email protected]>
Rename block to proc in Exposure

Just make it a little clearer we’re expecting to receive the proc as a normal argument, not ever...

91df07164de471a3950f5a9b88d5d152afe5b9c9 authored about 8 years ago by Tim Riley <[email protected]>
Allow multiple exposures to be defined at once

9c89b11f3c97442b216e63c35e2de10ea5bee877 authored about 8 years ago by Tim Riley <[email protected]>
Use a separate keyword for defining private exposures

This allows the API to be used in “method annotation”-style for all types of exosures, e.g.

exp...

84967495d29e311b1982c97e7a41081176d318d2 authored about 8 years ago by Tim Riley <[email protected]>
Use Ruby 2.0-compatible approach for mapping over a hash

e91402bf75cc276f4a1144ee9861611e7f8a71f4 authored about 8 years ago by Tim Riley <[email protected]>
Set a required Ruby version

09bb4c8b0f1b4be054ac30750086f12115da9379 authored about 8 years ago by Tim Riley <[email protected]>
Remove Capybara development dependency

This must’ve been a hangover from the original Rodakase project; we’re not using it here.

2cf7b943079995893bc51e0669d9262d66836f3d authored about 8 years ago by Tim Riley <[email protected]>
Support “private” exposures (which are not passed to the view)

f938f8176ca67f8f9e056683798bf769a222cdf4 authored about 8 years ago by Tim Riley <[email protected]>
Support instance methods as exposures

2b45c44cf3ea57f659bd526028bddfcffe3a1364 authored about 8 years ago by Tim Riley <[email protected]>
Allow exposures to depend on each other based on parameter names

9db15da5c08d43d59811702ee603fd9459537dbc authored about 8 years ago by Tim Riley <[email protected]>
Add initial support for exposures to accept input and supply view locals

23c58e60334c7a765797f5a2156eea96ab74c376 authored about 8 years ago by Tim Riley <[email protected]>
Remove deprecation of old “root” setting

3fba096524e5083576c55e5d07179dcdb701e4b5 authored about 8 years ago by Tim Riley <[email protected]>
Merge pull request #16 from dry-rb/rename-layout-to-controller

Rename layout to controller

0b93cb97fd9142d1a297e5ed244412d6f1ad694f authored about 8 years ago by Tim Riley <[email protected]>
Update coverage reporting setup on CI

5f6318f6d42cc66549dcdf846e031f881a7eb07c authored about 8 years ago by Tim Riley <[email protected]>
Rename `parts` to `view_parts` and remove from public API

It was never really clear how this could be helpful in a realistic scenario, so let’s deemphasis...

b27f9fd664bdfc7c9ab5cedb3bd2e514727b61cc authored about 8 years ago by Tim Riley <[email protected]>
Rename “name” Dry::View::Controller setting to “layout”

“name” made sense when this part of a Dry::View::Layout class, but now that it’s called Dry::Vie...

0cb1f5ad0df834109f478789095840332a3884b3 authored about 8 years ago by Tim Riley <[email protected]>
Rename Dry::View::Layout to Dry::View::Controller

This is the first step in reorienting people’s approach to dry-view. Since the main job of Dry::...

6c334b4406ead9dfb4869b9dd377ed959ac2b4b9 authored about 8 years ago by Tim Riley <[email protected]>
Ensure bin/console and other scripts don’t get installed as executables

05cb6565b2bf1acb8db4dd39d636d628a142aed0 authored over 8 years ago by Tim Riley <[email protected]>
Add bin/console

c0322ae5f00ec6a71a88762bdbdd16c87bfec7fb authored over 8 years ago by Tim Riley <[email protected]>
Keep the root setting around as deprecated for a release cycle

83d6c9a1e13739717f39251ea53031d9aa04e044 authored over 8 years ago by Tim Riley <[email protected]>
Add initial CHANGELOG notes for v0.2.0 release

b6738a2fe0c1a422ae6e966d166046e4ab3d8c94 authored over 8 years ago by Tim Riley <[email protected]>
Add missing CHANGELOG notes for v0.1.1

bd8902996f0bf1468f375e5c7b33564c9675626b authored over 8 years ago by Tim Riley <[email protected]>
Remove spurious to_s

2395bf5e22d0807f1ba53e3b02f24409024c7440 authored over 8 years ago by Tim Riley <[email protected]>
Merge pull request #7 from dry-rb/pass-arguments-to-part-methods

Make arguments to partial method calls available within their templates

1f5ea8d9b7e52881a34c0328528782e199abbd2b authored over 8 years ago by Tim Riley <[email protected]>
Massage args into a hash before passing them to a partial

3db58117cb3fd1b6cc4f0014889dfebe94576b9c authored over 8 years ago by Tim Riley <[email protected]>
Fix tests for sending blocks to part methods

24654cd6a61f7e664e4d9633292734f6a1cd98bb authored over 8 years ago by Tim Riley <[email protected]>
Don’t build a new part for partials unless extra scope data is provided

367afb64f637ef208c40eeb725376a2cfc0f73fb authored over 8 years ago by Tim Riley <[email protected]>
Take arguments to partial calls and add them into the template’s scope

4f437d2279b683ffcee3d84601b76d5cee282710 authored over 8 years ago by Tim Riley <[email protected]>
Merge pull request #6 from dry-rb/multiple-view-paths

Support multiple template paths

325f6cbd1f8005f0b68a03a88dfb613d766d56dd authored over 8 years ago by Tim Riley <[email protected]>
Support multiple view template paths

d2248b6588193f88830b5c4f4166311444e81a79 authored over 8 years ago by Tim Riley <[email protected]>
Depend on older rack to maintain older Ruby compat

Rack >= 2.0.0 requires Ruby >= 2.2.0, and we still support older versions of Ruby here.

4ff41e341d9ac137b76ef95b7c3dddc301587d47 authored over 8 years ago by Tim Riley <[email protected]>
Bump to v0.1.1

1b948375f928ea58b7a99bbedfd8bcbc8ba3113e authored over 8 years ago by Tim Riley <[email protected]>
Merge pull request #5 from gotar/fix-utf-8-tilt-error

Fix error: Template file is not valid US-ASCII

10725ad7fadbb496391244c3dffc9775f1ae52ac authored over 8 years ago by Tim Riley <[email protected]>
Fix error: Template file is not valid US-ASCII (Encoding::InvalidByteSequenceError)

Related to: https://github.com/hanami/view/issues/76

39e3f96625bf90da2e51fb1fd437f18cedb9ae8c authored over 8 years ago by Oskar Szrajer <[email protected]>
Merge pull request #4 from dry-rb/render-template-content-first

Render template content before rendering layout content

825a0226862d821528eb6dde8cfe83f87648604e authored over 8 years ago by Tim Riley <[email protected]>
Render template content before rendering layout content

This allows for content sharing from the template up to the layout. For example, via a “content_...

c17d90295b1920bd87ffb2b9268808c1ba2df33e authored over 8 years ago by Tim Riley <[email protected]>
Merge pull request #3 from dry-rb/use-part-object-for-layout-scope

Use a part object as the layout template's scope

8b559ac675ce9bdade0fd9a4ab23987347e7b674 authored over 8 years ago by Tim Riley <[email protected]>
Set up Tilt to pass specs on JRuby

a27ab42e1b74917c56460b971b9dacf011f4feb6 authored over 8 years ago by Tim Riley <[email protected]>
Tidy up view spec

8eb1c69eaf3bb71edccb90b9a7bd270305bd1e45 authored over 8 years ago by Tim Riley <[email protected]>
Fix spec breakages and warnings on rbx

7cba4adf86f169419dc677e9c3730f1933c00345 authored over 8 years ago by Tim Riley <[email protected]>
Require erb explicitly in spec_helper

251cfff129777263789cde102d8f02bad62a49d8 authored over 8 years ago by Tim Riley <[email protected]>
Expose `page` scope to the layout wrapped up in a part object

This should allow rendering of partials via `== partial_name` instead of having to chain them on...

a7fd20dc86267668f3dfba58d5de9485fce09f6c authored over 8 years ago by Tim Riley <[email protected]>
Add a CHANGELOG

a6760b2ab8ff099c59a2fc692873eea4d17e8aa5 authored over 8 years ago by Tim Riley <[email protected]>
Add bundler gem tasks to Rakefile

3476cf00ad8b1c236940715d0584c50d137e8dbf authored almost 9 years ago by Tim Riley <[email protected]>
Add badges to the README

1edead7bfb1a876adfa997e0013ffeaf0584462c authored almost 9 years ago by Tim Riley <[email protected]>
Add Ruby 2.3.0 to Travis

32f732de1dbefa2624090c8bda2b716468ddcce9 authored almost 9 years ago by Tim Riley <[email protected]>
Add token for Code Climate coverage reporting

191b4ea3a8440e7506a2148a1d7deec101c72e08 authored almost 9 years ago by Tim Riley <[email protected]>
Add Travis configuration

153a464eccc2ea945388613046cce729902ab2fb authored almost 9 years ago by Tim Riley <[email protected]>
Copy view benchmarks from rodakase

58563fadcba30aa714e66cc1243e2bb18401d1b9 authored almost 9 years ago by Tim Riley <[email protected]>
Remove Gemfile.lock

99bee9a026f5dae7820b91656db443412cd08a84 authored almost 9 years ago by Tim Riley <[email protected]>
Remove unneeded rack-test dependency

951d0e0a35c76e99de5280db3bd02612926fe04e authored almost 9 years ago by Tim Riley <[email protected]>
Add Rakefile

81d79192e46eb28f27e0c7a816a1e80a069e4e4d authored almost 9 years ago by Tim Riley <[email protected]>
Extract dry-view from rodakase

45fee16221c77b8b265d295f70f0bde0aa115a23 authored almost 9 years ago by Tim Riley <[email protected]>