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
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]>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]>af61b7d92f3c67ef7560936ce8c5092c2b189f9b authored almost 8 years ago by Tim Riley <[email protected]>
Resolve methods from scope in order of data, context, partials
2bbb23a88e71a201d49aa6c360a41f67482791b6 authored almost 8 years ago by Tim Riley <[email protected]>This reduces the risk of partials with names conflicting with data causing problems.
051d47d62753206926c9dbb81dc4e1925c422683 authored almost 8 years ago by Tim Riley <[email protected]>Support multiple template languages by inferring engine from template name
72973364044d0d21d7cc8aa7e0e13cd944c961e9 authored almost 8 years ago by Tim Riley <[email protected]>fb2347d438d56b72b9a74b97c12d60970021fbbb authored almost 8 years ago by Tim Riley <[email protected]>
19e879ed8defb911437691fed39c4d04b7a1aab4 authored almost 8 years ago by Tim Riley <[email protected]>
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]>Make a shared context available across layouts, templates and partials
3766b875a85a20b2fcd2a6fee7856b39e673c425 authored almost 8 years ago by Tim Riley <[email protected]>f38e0493f8592fbab0b3ce53d145c7bd2d2479ed authored almost 8 years ago by Tim Riley <[email protected]>
391443e26611d17048d5684282ab561d299c4794 authored almost 8 years ago by Tim Riley <[email protected]>
9e1c0e58daf4b90fcaa28328b1286df33c771048 authored almost 8 years ago by Tim Riley <[email protected]>
Replace parts with a single top-level scope
43dedc2f582d4306faf07540d0bd53c5f0c5bc1b authored almost 8 years ago by Tim Riley <[email protected]>6b354053bbfa99aa51d9f3297c62e6e78387080d authored almost 8 years ago by Tim Riley <[email protected]>
6b502746aa73339424b4f3f3fcd166ff1a82c1fd authored almost 8 years ago by Tim Riley <[email protected]>
Rename layout parts and scope options
1b23d1ba80e81de5e6a8afaf32e222dc47ec1739 authored almost 8 years ago by Tim Riley <[email protected]>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]>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]>Unify handling of additional partial args and run through Part.build
a864bcaf68fbb5c6d2fc0c1d98f0cd021f2dc290 authored almost 8 years ago by Tim Riley <[email protected]>352339049c2b708536cfa5697f3a4a8f390454cf authored almost 8 years ago by Tim Riley <[email protected]>
b92b63dcb2bdeaf4c12e482e65fccadc2e69ea53 authored almost 8 years ago by Tim Riley <[email protected]>
Move all part construction logic into Part.build
8c91938198f0bf43a899f0e31f4da3cbe9cfcb07 authored almost 8 years ago by Tim Riley <[email protected]>c5246347cc4f349fc893f4cae218fc9538c07e59 authored almost 8 years ago by Tim Riley <[email protected]>
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]>Make message for TemplateNotFoundError more readable
2884c9df78597c043794012b7b84a3e031cf7ab5 authored almost 8 years ago by Tim Riley <[email protected]>c7a6cb135502f8f842688544bb7732d75ed625c0 authored almost 8 years ago by Hannes Nevalainen <[email protected]>
a8af2b3647a062a4858505b2e3def4e448bb6d2e authored about 8 years ago by Tim Riley <[email protected]>
Allow falsey layout values to disable rendering of layout
42edfff914edc4a9825d1b9963c7cd4b39800edc authored about 8 years ago by Tim Riley <[email protected]>65c0fe8f2317ed4a7c15988b3bf7acc04c14ba0f authored about 8 years ago by Tim Riley <[email protected]>
dbe8fdf8459a3abe78e7e1bed8a88c187e6d3231 authored about 8 years ago by Tim Riley <[email protected]>
Use exposures to prepare view locals
51a6b84e83ad7279e85762b445ba22e52cf8c347 authored about 8 years ago by Tim Riley <[email protected]>b1ce59940ff4aefec563cf1dc9ee463debfa8e77 authored about 8 years ago by Tim Riley <[email protected]>
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]>e31a033aa7ad40955f6c86d635a7523e9230d731 authored about 8 years ago by Tim Riley <[email protected]>
ab0575b006bef0428dda4449287f5cbf6c074b5c authored about 8 years ago by Tim Riley <[email protected]>
21e020fc1c7e003fd167f33099b81362354226b2 authored about 8 years ago by Tim Riley <[email protected]>
ca655403557f18e4b9bda5dc4b140c773daa80e1 authored about 8 years ago by Tim Riley <[email protected]>
a74774fe631c52633706d75882ed89698a3a2052 authored about 8 years ago by Tim Riley <[email protected]>
232d646336f13516ea358e6b8705071dc3e5f819 authored about 8 years ago by Tim Riley <[email protected]>
650fc405a30655bff03ce9b5a86dec51c36a1a6b authored about 8 years ago by Tim Riley <[email protected]>
5654693aa000db898bc112e18ff5b35749380755 authored about 8 years ago by Tim Riley <[email protected]>
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]>9c89b11f3c97442b216e63c35e2de10ea5bee877 authored about 8 years ago by Tim Riley <[email protected]>
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]>e91402bf75cc276f4a1144ee9861611e7f8a71f4 authored about 8 years ago by Tim Riley <[email protected]>
09bb4c8b0f1b4be054ac30750086f12115da9379 authored about 8 years ago by Tim Riley <[email protected]>
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]>f938f8176ca67f8f9e056683798bf769a222cdf4 authored about 8 years ago by Tim Riley <[email protected]>
2b45c44cf3ea57f659bd526028bddfcffe3a1364 authored about 8 years ago by Tim Riley <[email protected]>
9db15da5c08d43d59811702ee603fd9459537dbc authored about 8 years ago by Tim Riley <[email protected]>
23c58e60334c7a765797f5a2156eea96ab74c376 authored about 8 years ago by Tim Riley <[email protected]>
3fba096524e5083576c55e5d07179dcdb701e4b5 authored about 8 years ago by Tim Riley <[email protected]>
Rename layout to controller
0b93cb97fd9142d1a297e5ed244412d6f1ad694f authored about 8 years ago by Tim Riley <[email protected]>5f6318f6d42cc66549dcdf846e031f881a7eb07c authored about 8 years ago by Tim Riley <[email protected]>
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]>“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]>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]>05cb6565b2bf1acb8db4dd39d636d628a142aed0 authored over 8 years ago by Tim Riley <[email protected]>
c0322ae5f00ec6a71a88762bdbdd16c87bfec7fb authored over 8 years ago by Tim Riley <[email protected]>
83d6c9a1e13739717f39251ea53031d9aa04e044 authored over 8 years ago by Tim Riley <[email protected]>
b6738a2fe0c1a422ae6e966d166046e4ab3d8c94 authored over 8 years ago by Tim Riley <[email protected]>
bd8902996f0bf1468f375e5c7b33564c9675626b authored over 8 years ago by Tim Riley <[email protected]>
2395bf5e22d0807f1ba53e3b02f24409024c7440 authored over 8 years ago by Tim Riley <[email protected]>
Make arguments to partial method calls available within their templates
1f5ea8d9b7e52881a34c0328528782e199abbd2b authored over 8 years ago by Tim Riley <[email protected]>3db58117cb3fd1b6cc4f0014889dfebe94576b9c authored over 8 years ago by Tim Riley <[email protected]>
24654cd6a61f7e664e4d9633292734f6a1cd98bb authored over 8 years ago by Tim Riley <[email protected]>
367afb64f637ef208c40eeb725376a2cfc0f73fb authored over 8 years ago by Tim Riley <[email protected]>
4f437d2279b683ffcee3d84601b76d5cee282710 authored over 8 years ago by Tim Riley <[email protected]>
Support multiple template paths
325f6cbd1f8005f0b68a03a88dfb613d766d56dd authored over 8 years ago by Tim Riley <[email protected]>d2248b6588193f88830b5c4f4166311444e81a79 authored over 8 years ago by Tim Riley <[email protected]>
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]>1b948375f928ea58b7a99bbedfd8bcbc8ba3113e authored over 8 years ago by Tim Riley <[email protected]>
Fix error: Template file is not valid US-ASCII
10725ad7fadbb496391244c3dffc9775f1ae52ac authored over 8 years ago by Tim Riley <[email protected]>Related to: https://github.com/hanami/view/issues/76
39e3f96625bf90da2e51fb1fd437f18cedb9ae8c authored over 8 years ago by Oskar Szrajer <[email protected]>Render template content before rendering layout content
825a0226862d821528eb6dde8cfe83f87648604e authored over 8 years ago by Tim Riley <[email protected]>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]>Use a part object as the layout template's scope
8b559ac675ce9bdade0fd9a4ab23987347e7b674 authored over 8 years ago by Tim Riley <[email protected]>a27ab42e1b74917c56460b971b9dacf011f4feb6 authored over 8 years ago by Tim Riley <[email protected]>
8eb1c69eaf3bb71edccb90b9a7bd270305bd1e45 authored over 8 years ago by Tim Riley <[email protected]>
7cba4adf86f169419dc677e9c3730f1933c00345 authored over 8 years ago by Tim Riley <[email protected]>
251cfff129777263789cde102d8f02bad62a49d8 authored over 8 years ago by Tim Riley <[email protected]>
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]>a6760b2ab8ff099c59a2fc692873eea4d17e8aa5 authored over 8 years ago by Tim Riley <[email protected]>
3476cf00ad8b1c236940715d0584c50d137e8dbf authored almost 9 years ago by Tim Riley <[email protected]>
1edead7bfb1a876adfa997e0013ffeaf0584462c authored almost 9 years ago by Tim Riley <[email protected]>
32f732de1dbefa2624090c8bda2b716468ddcce9 authored almost 9 years ago by Tim Riley <[email protected]>
191b4ea3a8440e7506a2148a1d7deec101c72e08 authored almost 9 years ago by Tim Riley <[email protected]>
153a464eccc2ea945388613046cce729902ab2fb authored almost 9 years ago by Tim Riley <[email protected]>
58563fadcba30aa714e66cc1243e2bb18401d1b9 authored almost 9 years ago by Tim Riley <[email protected]>
99bee9a026f5dae7820b91656db443412cd08a84 authored almost 9 years ago by Tim Riley <[email protected]>
951d0e0a35c76e99de5280db3bd02612926fe04e authored almost 9 years ago by Tim Riley <[email protected]>
81d79192e46eb28f27e0c7a816a1e80a069e4e4d authored almost 9 years ago by Tim Riley <[email protected]>
45fee16221c77b8b265d295f70f0bde0aa115a23 authored almost 9 years ago by Tim Riley <[email protected]>