README.jp.md in slim-4.1.0 vs README.jp.md in slim-5.0.0

- old
+ new

@@ -1,9 +1,12 @@ # Slim -[![Gem Version](https://img.shields.io/gem/v/slim.svg)](http://rubygems.org/gems/slim) [![Build Status](https://img.shields.io/travis/slim-template/slim.svg?branch=master)](http://travis-ci.org/slim-template/slim) [![Code Climate](https://codeclimate.com/github/slim-template/slim/badges/gpa.svg)](https://codeclimate.com/github/slim-template/slim) [![Test Coverage](https://codeclimate.com/github/slim-template/slim/badges/coverage.svg)](https://codeclimate.com/github/slim-template/slim/coverage) -[![Flattr donate button](https://raw.github.com/balupton/flattr-buttons/master/badge-89x18.gif)](https://flattr.com/submit/auto?user_id=min4d&url=http%3A%2F%2Fslim-lang.org%2F "Donate monthly to this project using Flattr") +[![Gem Version](https://img.shields.io/gem/v/slim.svg)](http://rubygems.org/gems/slim) +![Build Status](https://github.com/slim-template/slim/actions/workflows/test.yml/badge.svg) +[![Code Climate](https://codeclimate.com/github/slim-template/slim/badges/gpa.svg)](https://codeclimate.com/github/slim-template/slim) +[![Test Coverage](https://codeclimate.com/github/slim-template/slim/badges/coverage.svg)](https://codeclimate.com/github/slim-template/slim/coverage) +[![GitHub Sponsors](https://img.shields.io/github/sponsors/slim-template)](https://github.com/sponsors/slim-template) Slim は 不可解にならない程度に view の構文を本質的な部品まで減らすことを目指したテンプレート言語です。標準的な HTML テンプレートからどれだけのものを減らせるか、検証するところから始まりました。(<, >, 閉じタグなど) 多くの人が Slim に興味を持ったことで, 機能的で柔軟な構文に成長しました。 簡単な特徴 @@ -26,11 +29,11 @@ * タグや属性の Unicode に完全対応 * Markdown や Textile のような埋め込みエンジン ## リンク -* ホームページ: <http://slim-lang.com> +* ホームページ: <http://github.com/slim-template/slim> * ソース: <http://github.com/slim-template/slim> * バグ: <http://github.com/slim-template/slim/issues> * リスト: <http://groups.google.com/group/slim-template> * API ドキュメント: * 最新の Gem: <http://rubydoc.info/gems/slim/frames> <https://www.omniref.com/ruby/gems/slim> @@ -38,11 +41,11 @@ ## イントロダクション ### Slim とは? -Slim は __Rails3 以降__ に対応した高速, 軽量なテンプレートエンジンです。主要な Ruby の実装全てでしっかりテストされています。 +Slim は __Rails5 以降__ に対応した高速, 軽量なテンプレートエンジンです。主要な Ruby の実装全てでしっかりテストされています。 私たちは継続的インテグレーションを採用しています。(travis-ci) Slim の核となる構文は1つの考えによって導かれています: "この動作を行うために最低限必要なものは何か。" 多くの人々の Slim への貢献によって, 彼らが使う [Haml](https://github.com/haml/haml) や [Jade](https://github.com/visionmedia/jade) の影響を受け構文の追加が行われています。 Slim の開発チームは美は見る人の目の中にあることを分っているので、こういった追加にオープンです。 @@ -406,11 +409,11 @@ ### 属性 タグの後に直接属性を書きます。通常の属性記述にはダブルクォート `"` か シングルクォート `'` を使わなければなりません (引用符で囲まれた属性)。 ~~~ slim -a href="http://slim-lang.com" title='Slim のホームページ' Slim のホームページへ +a href="http://github.com/slim-template/slim" title='Slim のホームページ' Slim のホームページへ ~~~ 引用符で囲まれたテキストを属性として使えます。 #### 属性の囲み @@ -442,11 +445,11 @@ #### 引用符で囲まれた属性 例: ~~~ slim -a href="http://slim-lang.com" title='Slim のホームページ' Slim のホームページへ +a href="http://github.com/slim-template/slim" title='Slim のホームページ' Slim のホームページへ ~~~ 引用符で囲まれたテキストを属性として使えます: ~~~ slim @@ -507,17 +510,17 @@ 複数の属性が与えられた場合に属性をまとめるように設定することができます (`:merge_attrs` 参照)。デフォルト設定では class 属性はスペース区切りで結合されます。 ~~~ slim -a.menu class="highlight" href="http://slim-lang.com/" Slim-lang.com +a.menu class="highlight" href="http://github.com/slim-template/slim/" github.com/slim-template/slim ~~~ レンダリング結果: ~~~ html -<a class="menu highlight" href="http://slim-lang.com/">Slim-lang.com</a> +<a class="menu highlight" href="http://github.com/slim-template/slim/">github.com/slim-template/slim</a> ~~~ また, `Array` を属性値として使うと、配列要素が区切り文字で結合されます。 ~~~ slim @@ -566,22 +569,22 @@ 作るだけです。 ~~~ slim ruby: def a_unless_current - @page_current ? {tag: 'span'} : {tag: 'a', href: 'http://slim-lang.com/'} + @page_current ? {tag: 'span'} : {tag: 'a', href: 'http://github.com/slim-template/slim/'} end - @page_current = true *a_unless_current リンク - @page_current = false *a_unless_current リンク ~~~ レンダリング結果: ~~~ html -<span>リンク</span><a href="http://slim-lang.com/">リンク</a> +<span>リンク</span><a href="http://github.com/slim-template/slim/">リンク</a> ~~~ ### ショートカット #### タグショートカット @@ -791,11 +794,11 @@ ~~~ そして, 次のように使用出来ます。 ~~~ slim -- links = { 'http://slim-lang.com' => 'The Slim Template Language' } +- links = { 'http://github.com/slim-template/slim' => 'The Slim Template Language' } = capture link_list=:link_list, links do |url, text| a href=url = text ~~~ その後は, `link_list`はキャプチャしたコンテンツを含みます。 @@ -1196,13 +1199,12 @@ Travis-CI は継続的インテグレーションテストに利用されています: <http://travis-ci.org/slim-template/slim> Slim は主要な Ruby 実装全てで動作します: -* Ruby 2.0, 2.1, 2.2 および 2.3 -* JRuby 1.9 mode -* Rubinius 2.0 +* Ruby 2.5 +* JRuby ## 貢献 Slim の改良を支援したい場合, Git で管理されているプロジェクトを clone してください。 @@ -1210,11 +1212,11 @@ $ git clone git://github.com/slim-template/slim ~~~ 魔法をかけた後 pull request を送ってください。私たちは pull request が大好きです! -Ruby の 2.3.0, 2.2.0, 2.1.0 と 2.0.0 でテストをすることを覚えておいてください。 +Ruby の 2.5.0 でテストをすることを覚えておいてください。 もしドキュメントの不足を見つけたら, README.md をアップデートして私たちを助けて下さい。Slim に割ける時間がないが, 私たちが知っておくべきことを見つけた場合には issue を送ってください。 ## License @@ -1226,15 +1228,12 @@ * [Andrew Stone](https://github.com/stonean) * [Fred Wu](https://github.com/fredwu) ## 寄付と支援 -このプロジェクトをサポートしたい場合, Gittip や Flattr のページを見てください。 +このプロジェクトをサポートしたい場合, GitHub sponsors のページを見てください。 -[![Gittip donate button](http://img.shields.io/gittip/bevry.png)](https://www.gittip.com/min4d/ "Donate weekly to this project using Gittip") -[![Flattr donate button](https://raw.github.com/balupton/flattr-buttons/master/badge-89x18.gif)](https://flattr.com/submit/auto?user_id=min4d&url=http%3A%2F%2Fslim-lang.org%2F "Donate monthly to this project using Flattr") - -今のところ, 寄付はホスティング費用 (ドメインなど) に当てられる予定です。 +[![GitHub Sponsors](https://img.shields.io/github/sponsors/slim-template)](https://github.com/sponsors/slim-template) ## 議論 * [Google Group](http://groups.google.com/group/slim-template)