mirror of
https://github.com/actix/examples
synced 2025-06-27 01:27:43 +02:00
restructure folders
This commit is contained in:
16
templating/yarte/templates/deep/more/card/form.hbs
Normal file
16
templating/yarte/templates/deep/more/card/form.hbs
Normal file
@ -0,0 +1,16 @@
|
||||
{{!
|
||||
Form: What is your name?
|
||||
!}}
|
||||
{{> ../deep/welcome id = "welcome", tag = "h1", tail = '!' ~}}
|
||||
<div>
|
||||
<h3>What is your name?</h3>
|
||||
<form>
|
||||
{{! Input name !}}
|
||||
Name: <input type="text" name="name" /><br/>
|
||||
{{! Input last name !}}
|
||||
Last name: <input type="text" name="lastname"/><br/>
|
||||
<p>
|
||||
<input type="submit">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
8
templating/yarte/templates/deep/more/card/hi.hbs
Normal file
8
templating/yarte/templates/deep/more/card/hi.hbs
Normal file
@ -0,0 +1,8 @@
|
||||
{{!
|
||||
Hi message:
|
||||
args:
|
||||
- lastname
|
||||
- name
|
||||
!}}
|
||||
<h1>Hi, {{ name }} {{ lastname }}!</h1>
|
||||
{{~> alias/welcome id = "hi", tag = 'p', tail = "" }}
|
11
templating/yarte/templates/deep/more/deep/welcome.hbs
Normal file
11
templating/yarte/templates/deep/more/deep/welcome.hbs
Normal file
@ -0,0 +1,11 @@
|
||||
{{!
|
||||
Welcome card:
|
||||
args:
|
||||
- tag
|
||||
- id
|
||||
- tail
|
||||
!}}
|
||||
{{#unless tag.is_match(r"^p|(h[1-6])$") && !id.is_empty() }}
|
||||
{{$ "Need static args: tag: str /^h[1-6]$/, id: str" }}
|
||||
{{/unless }}
|
||||
<{{ tag }} id="{{ id }}" class="welcome">Welcome{{ tail }}</{{ tag }}>
|
7
templating/yarte/templates/deep/more/doc/head.hbs
Normal file
7
templating/yarte/templates/deep/more/doc/head.hbs
Normal file
@ -0,0 +1,7 @@
|
||||
{{# unless title.is_str() && !title.is_empty() }}
|
||||
{{$ "Need static args: title: str" }}
|
||||
{{/unless}}
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
1
templating/yarte/templates/deep/more/doc/t.hbs
Normal file
1
templating/yarte/templates/deep/more/doc/t.hbs
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html>
|
Reference in New Issue
Block a user