Init
This commit is contained in:
20
templates/erubi.erb
Normal file
20
templates/erubi.erb
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Hello from Erubi!</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<link rel="stylesheet" href="/test.css">
|
||||
<meta name="current_time" content="<%= Time.now.to_s %>">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<div class="container">
|
||||
<% 100.times do |i| %>
|
||||
<div>This is div #<%= i %></div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
29
templates/fortitude.rb
Normal file
29
templates/fortitude.rb
Normal file
@@ -0,0 +1,29 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class TestView < Fortitude::Widget
|
||||
doctype :html5
|
||||
|
||||
def content
|
||||
doctype!
|
||||
|
||||
html do
|
||||
head do
|
||||
title 'Hello from Fortitude'
|
||||
meta charset: 'utf-8'
|
||||
meta name: 'viewport', content: 'width=device-width, initial-scale=1'
|
||||
link rel: 'stylesheet', href: '/test.css'
|
||||
meta name: 'current_time', content: Time.now.to_s
|
||||
end
|
||||
|
||||
body do
|
||||
div(id: 'content') do
|
||||
div(class: 'container') do
|
||||
100.times do |i|
|
||||
div("This is div ##{i}")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
16
templates/haml.haml
Normal file
16
templates/haml.haml
Normal file
@@ -0,0 +1,16 @@
|
||||
!!!
|
||||
%html{lang: "en"}
|
||||
%head
|
||||
%meta{content: "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
|
||||
%title Hello from Erubi!
|
||||
%meta{charset: "UTF-8"}/
|
||||
%meta{content: "width=device-width, initial-scale=1.0", name: "viewport"}/
|
||||
%meta{content: "ie=edge", "http-equiv" => "X-UA-Compatible"}/
|
||||
%link{href: "/test.css", rel: "stylesheet"}/
|
||||
%meta{content: Time.now.to_s, name: "current_time"}/
|
||||
%body
|
||||
#content
|
||||
.container
|
||||
- 100.times do |i|
|
||||
%div
|
||||
This is div ##{i}
|
23
templates/handlebars.hbs
Normal file
23
templates/handlebars.hbs
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Hello from Liquid!</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<link rel="stylesheet" href="/test.css">
|
||||
<meta name="current_time" content="{{time}}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="content">
|
||||
<div class="container">
|
||||
{{#each number}}
|
||||
<div>This is div #{{@index}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
20
templates/liquid.liquid
Normal file
20
templates/liquid.liquid
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Hello from Liquid!</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<link rel="stylesheet" href="/test.css">
|
||||
<meta name="current_time" content="{{ "now" | date: "%Y-%m-%d %H:%M" }}">
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<div class="container">
|
||||
{% for i in (0..100) %}
|
||||
<div>This is div #{{ i }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
19
templates/markaby.mab
Normal file
19
templates/markaby.mab
Normal file
@@ -0,0 +1,19 @@
|
||||
html do
|
||||
head do
|
||||
title 'Hello from Markaby'
|
||||
meta charset: 'utf-8'
|
||||
meta name: 'viewport', content: 'width=device-width, initial-scale=1'
|
||||
link rel: 'stylesheet', href: '/test.css'
|
||||
meta name: 'current_time', content: Time.now.to_s
|
||||
end
|
||||
|
||||
body do
|
||||
div(id: 'content') do
|
||||
div(class: 'container') do
|
||||
100.times do |i|
|
||||
div("This is div ##{i}")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
13
templates/slim.slim
Normal file
13
templates/slim.slim
Normal file
@@ -0,0 +1,13 @@
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title Hello from Slim!
|
||||
meta charset="utf-8"
|
||||
meta name="viewport" content="width=device-width, initial-scale=1"
|
||||
link rel="stylesheet" href="/test.css"
|
||||
meta name="current_time" content=Time.now.to_s
|
||||
body
|
||||
#content
|
||||
.container
|
||||
- 100.times do |i|
|
||||
div This is div ##{i}
|
7
templates/template.txt
Normal file
7
templates/template.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
user system total real
|
||||
Slim: 3.180568 0.027484 3.208052 ( 3.209399)
|
||||
Markaby: 1.742859 0.023275 1.766134 ( 1.773957)
|
||||
Erubi: 0.337117 0.022639 0.359756 ( 0.367103)
|
||||
HAML: 4.148871 0.031099 4.179970 ( 4.188886)
|
||||
|
||||
---
|
Reference in New Issue
Block a user