Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove creole #1792

Merged
merged 3 commits into from
Jul 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Readmes with creole removal
  • Loading branch information
epergo committed Jul 17, 2022
commit 901448d45a739bef4c80fdf5118ede9daba1a3ca
39 changes: 0 additions & 39 deletions README.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ diesen Server verwenden.
- [Markaby Templates](#markaby-templates)
- [RABL Templates](#rabl-templates)
- [Slim Templates](#slim-templates)
- [Creole Templates](#creole-templates)
- [Yajl Templates](#yajl-templates)
- [Auf Variablen in Templates zugreifen](#auf-variablen-in-templates-zugreifen)
- [Templates mit `yield` und verschachtelte Layouts](#templates-mit-yield-und-verschachtelte-layouts)
Expand Down Expand Up @@ -850,44 +849,6 @@ Nimmt ebenso einen Block für Inline-Templates entgegen (siehe Beispiel).
</tr>
</table>

#### Creole Templates

<table>
<tr>
<td>Abhängigkeit</td>
<td><a href="https://github.com/minad/creole">creole</a></td>
</tr>
<tr>
<td>Dateierweiterung</td>
<td><tt>.creole</tt></td>
</tr>
<tr>
<td>Beispiel</td>
<td><tt>creole :wiki, :layout_engine => :erb</tt></td>
</tr>
</table>

Da man aus dem Creole-Template heraus keine Ruby-Methoden aufrufen und auch
keine locals verwenden kann, wird man Creole üblicherweise in Kombination mit
anderen Renderern verwenden wollen:

```ruby
erb :overview, :locals => { :text => creole(:einfuehrung) }
```

Beachte, dass man die `creole`-Methode auch aus anderen Templates heraus
aufrufen kann:

```ruby
%h1 Gruß von Haml!
%p= creole(:Grüße)
```

Da man Ruby nicht von Creole heraus aufrufen kann, können auch Layouts
nicht in Creole geschrieben werden. Es ist aber möglich, einen Renderer
für die Templates zu verwenden und einen anderen für das Layout, indem
die `:layout_engine`-Option verwendet wird.

#### Yajl Templates

<table>
Expand Down
37 changes: 0 additions & 37 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ Se recomienda ejecutar `gem install puma`, porque Sinatra lo utilizará si está
- [Plantillas Markaby](#plantillas-markaby)
- [Plantillas RABL](#plantillas-rabl)
- [Plantillas Slim](#plantillas-slim)
- [Plantillas Creole](#plantillas-creole)
- [Plantillas Yajl](#plantillas-yajl)
- [Accediendo a Variables en Plantillas](#accediendo-a-variables-en-plantillas)
- [Plantillas con `yield` y `layout` anidado](#plantillas-con-yield-y-layout-anidado)
Expand Down Expand Up @@ -858,42 +857,6 @@ También toma un bloque para plantillas inline (ver [ejemplo](#plantillas-inline
</tr>
</table>

#### Plantillas Creole

<table>
<tr>
<td>Dependencias</td>
<td><a href="https://github.com/minad/creole" title="Creole">Creole</a></td>
</tr>
<tr>
<td>Extensiones de Archivo</td>
<td><tt>.creole</tt></td>
</tr>
<tr>
<td>Ejemplo</td>
<td><tt>creole :wiki, :layout_engine => :erb</tt></td>
</tr>
</table>

No es posible llamar métodos desde creole, ni pasarle locales. Por lo tanto,
generalmente va a usarlo en combinación con otro motor de renderizado:

```ruby
erb :resumen, :locals => { :texto => cerole(:introduccion) }
```

Debe tomar en cuenta que también puede llamar al método `creole` desde otras
plantillas:

```ruby
%h1 Hola Desde Haml!
%p= creole(:saludos)
```

Como no puedes utilizar Ruby desde Creole, no puedes usar layouts escritos en
Creole. De todos modos, es posible usar un motor de renderizado para el layout
distinto al de la plantilla pasando la opción `:layout_engine`.

#### Plantillas Yajl

<table>
Expand Down
38 changes: 0 additions & 38 deletions README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ Sinatra utilise le server Thin quand il est disponible.
- [Templates Markaby](#templates-markaby)
- [Templates RABL](#templates-rabl)
- [Templates Slim](#templates-slim)
- [Templates Creole](#templates-creole)
- [Templates Yajl](#templates-yajl)
- [Accéder aux variables dans un Template](#accéder-aux-variables-dans-un-template)
- [Templates avec `yield` et layouts imbriqués](#templates-avec-yield-et-layouts-imbriqués)
Expand Down Expand Up @@ -859,43 +858,6 @@ exemple).
</tr>
</table>

#### Templates Creole

<table>
<tr>
<td>Dépendances</td>
<td><a href="https://github.com/minad/creole" title="Creole">Creole</a></td>
</tr>
<tr>
<td>Extensions de fichier</td>
<td><tt>.creole</tt></td>
</tr>
<tr>
<td>Exemple</td>
<td><tt>creole :wiki, :layout_engine => :erb</tt></td>
</tr>
</table>

Il n'est pas possible d'appeler de méthodes Ruby depuis creole, ni de lui
passer de variables locales. Par conséquent, il sera souvent utilisé en
combinaison avec un autre moteur de rendu :

```ruby
erb :accueil, :locals => { :text => markdown(:introduction) }
```

Notez que vous pouvez également appeler la méthode `creole` depuis un autre template :

```ruby
%h1 Bonjour depuis Haml !
%p= creole(:bienvenue)
```

Comme vous ne pouvez pas appeler de méthodes Ruby depuis Creole, vous ne pouvez
pas utiliser de layouts écrits en Creole. Toutefois, il est possible
d'utiliser un moteur de rendu différent pour le template et pour le layout
en utilisant l'option `:layout_engine`.

#### Templates Yajl

<table>
Expand Down
34 changes: 0 additions & 34 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ PumaがあればSinatraはこれを利用するので、`gem install puma`する
- [Markaby テンプレート](#markaby-テンプレート)
- [RABL テンプレート](#rabl-テンプレート)
- [Slim テンプレート](#slim-テンプレート)
- [Creole テンプレート](#creole-テンプレート)
- [Yajl テンプレート](#yajl-テンプレート)
- [テンプレート内での変数へのアクセス](#テンプレート内での変数へのアクセス)
- [`yield`を伴うテンプレートとネストしたレイアウト](#yieldを伴うテンプレートとネストしたレイアウト)
Expand Down Expand Up @@ -785,39 +784,6 @@ RadiusテンプレートからRubyのメソッドを直接呼び出すことが
</tr>
</table>

#### Creole テンプレート

<table>
<tr>
<td>依存</td>
<td><a href="https://github.com/minad/creole" title="Creole">Creole</a></td>
</tr>
<tr>
<td>ファイル拡張子</td>
<td><tt>.creole</tt></td>
</tr>
<tr>
<td>例</td>
<td><tt>creole :wiki, :layout_engine => :erb</tt></td>
</tr>
</table>

Creoleからメソッドを呼び出すことも、localsに変数を渡すこともできません。
それゆえ、他のレンダリングエンジンとの組み合わせで使うのが普通です。

```ruby
erb :overview, :locals => { :text => creole(:introduction) }
```

ノート: 他のテンプレート内で`creole`メソッドを呼び出せます。

```ruby
%h1 Hello From Haml!
%p= creole(:greetings)
```

CreoleからはRubyを呼ぶことができないので、Creoleで書かれたレイアウトを使うことはできません。しかしながら、`:layout_engine`オプションを渡すことでテンプレートのものとは異なるレンダリングエンジンをレイアウトのために使うことができます。

#### Yajl テンプレート

<table>
Expand Down
36 changes: 0 additions & 36 deletions README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ thin이 설치되어 있을 경우 Sinatra는 thin을 통해 실행합니다.
- [Markaby 템플릿](#markaby-템플릿)
- [RABL 템플릿](#rabl-템플릿)
- [Slim 템플릿](#slim-템플릿)
- [Creole 템플릿](#creole-템플릿)
- [Yajl 템플릿](#yajl-템플릿)
- [템플릿에서 변수에 접근하기](#템플릿에서-변수에-접근하기)
- [템플릿에서의 `yield` 와 중첩 레이아웃](#템플릿에서의-yield-와-중첩-레이아웃)
Expand Down Expand Up @@ -779,41 +778,6 @@ Radius 템플릿에서는 루비 메서드를 호출할 수 없기
</tr>
</table>

#### Creole 템플릿

<table>
<tr>
<td>의존성</td>
<td><a href="https://github.com/minad/creole">creole</a></td>
</tr>
<tr>
<td>파일 확장자</td>
<td><tt>.creole</tt></td>
</tr>
<tr>
<td>예제</td>
<td><tt>creole :wiki, :layout_engine => :erb</tt></td>
</tr>
</table>

Creole에서는 메서드 호출 뿐 아니라 locals 전달도 안됩니다.
따라서 일반적으로는 다른 렌더링 엔진과 함께 사용하게 됩니다.

```ruby
erb :overview, :locals => { :text => creole(:introduction) }
```

다른 템플릿 속에서 `creole` 메서드를 호출할 수도 있습니다.

```ruby
%h1 Hello From Haml!
%p= creole(:greetings)
```

Creole에서 루비를 호출할 수 없기 때문에, Creole으로 작성된 레이아웃은
사용할 수 없습니다. 하지만, `:layout_engine` 옵션으로 레이아웃의 템플릿을
다른 렌더링 엔진으로 렌더링 할 수는 있습니다.

#### Yajl 템플릿

<table>
Expand Down
36 changes: 0 additions & 36 deletions README.malayalam.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ View at: [http://localhost:4567](http://localhost:4567)
- [Markaby Templates](#markaby-templates)
- [RABL Templates](#rabl-templates)
- [Slim Templates](#slim-templates)
- [Creole Templates](#creole-templates)
- [Yajl Templates](#yajl-templates)
- [Accessing Variables in Templates](#accessing-variables-in-templates)
- [Templates with `yield` and nested layouts](#templates-with-yield-and-nested-layouts)
Expand Down Expand Up @@ -824,41 +823,6 @@ It also takes a block for inline templates (see [example](#inline-templates)).
</tr>
</table>

#### Creole Templates

<table>
<tr>
<td>Dependency</td>
<td><a href="https://github.com/minad/creole" title="Creole">Creole</a></td>
</tr>
<tr>
<td>File Extension</td>
<td><tt>.creole</tt></td>
</tr>
<tr>
<td>Example</td>
<td><tt>creole :wiki, :layout_engine => :erb</tt></td>
</tr>
</table>

It is not possible to call methods from Creole, nor to pass locals to it. You
therefore will usually use it in combination with another rendering engine:

```ruby
erb :overview, :locals => { :text => creole(:introduction) }
```

Note that you may also call the `creole` method from within other templates:

```ruby
%h1 Hello From Haml!
%p= creole(:greetings)
```

Since you cannot call Ruby from Creole, you cannot use layouts written in
Creole. However, it is possible to use another rendering engine for the
template than for the layout by passing the `:layout_engine` option.

#### Yajl Templates

<table>
Expand Down
36 changes: 0 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ pick up if available.
- [Markaby Templates](#markaby-templates)
- [RABL Templates](#rabl-templates)
- [Slim Templates](#slim-templates)
- [Creole Templates](#creole-templates)
- [Yajl Templates](#yajl-templates)
- [Accessing Variables in Templates](#accessing-variables-in-templates)
- [Templates with `yield` and nested layouts](#templates-with-yield-and-nested-layouts)
Expand Down Expand Up @@ -851,41 +850,6 @@ It also takes a block for inline templates (see [example](#inline-templates)).
</tr>
</table>

#### Creole Templates

<table>
<tr>
<td>Dependency</td>
<td><a href="https://github.com/minad/creole" title="Creole">Creole</a></td>
</tr>
<tr>
<td>File Extension</td>
<td><tt>.creole</tt></td>
</tr>
<tr>
<td>Example</td>
<td><tt>creole :wiki, :layout_engine => :erb</tt></td>
</tr>
</table>

It is not possible to call methods from Creole, nor to pass locals to it. You
therefore will usually use it in combination with another rendering engine:

```ruby
erb :overview, :locals => { :text => creole(:introduction) }
```

Note that you may also call the `creole` method from within other templates:

```ruby
%h1 Hello From Haml!
%p= creole(:greetings)
```

Since you cannot call Ruby from Creole, you cannot use layouts written in
Creole. However, it is possible to use another rendering engine for the
template than for the layout by passing the `:layout_engine` option.

#### Yajl Templates

<table>
Expand Down
Loading