-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from AdFabConnect/bug_77
Bug 77
- Loading branch information
Showing
13 changed files
with
2,526 additions
and
2,275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# Abe tag | ||
|
||
> You can add abe tag to you template following simple rules | ||
## Abe DOM element | ||
|
||
This abe tag will display `text` on the document | ||
|
||
TEMPLATE | ||
|
||
```html | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
{{abe type='text' key='text_dom'}} | ||
</body> | ||
</html> | ||
``` | ||
|
||
RENDER | ||
|
||
```html | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
Hello | ||
</body> | ||
</html> | ||
``` | ||
|
||
## Abe DOM Attributes | ||
|
||
This example will be added to `body > class` html attributes | ||
|
||
TEMPLATE | ||
|
||
```html | ||
<html> | ||
<head> | ||
</head> | ||
<body class="{{abe type='text' key='text_class'}}"> | ||
|
||
</body> | ||
</html> | ||
``` | ||
|
||
RENDER | ||
|
||
```html | ||
<html> | ||
<head> | ||
</head> | ||
<body class="class-hello"> | ||
|
||
</body> | ||
</html> | ||
``` | ||
|
||
## More examples | ||
|
||
#### multiple attributes | ||
multiple attributes are allowed on the same html DOM object | ||
|
||
```html | ||
<html> | ||
<head> | ||
</head> | ||
<body class="{{abe type='text' key='text_class'}}" id="{{abe type='text' key='text_id'}}"> | ||
|
||
</body> | ||
</html> | ||
``` | ||
|
||
#### concatenate with attribute | ||
|
||
```html | ||
<html> | ||
<head> | ||
</head> | ||
<body class="my-body-class {{abe type='text' key='text_class'}}"> | ||
|
||
</body> | ||
</html> | ||
``` | ||
|
||
#### if handlebars | ||
|
||
On the next example if variable `text_class` is not empty use `text_class` otherwise use `my-default-class` | ||
|
||
```html | ||
<html> | ||
<head> | ||
</head> | ||
<body class="{{#if text_class}}{{abe type='text' key='text_class'}}{{else}}my-default-class{{/if}}"> | ||
|
||
</body> | ||
</html> | ||
``` | ||
|
||
# [ WARNING ] THE FOLLOWING EXAMPLE ARE NOT IMPLEMENTED YET | ||
|
||
Multiple abe attribute into the same html tag | ||
|
||
```html | ||
<html> | ||
<head> | ||
</head> | ||
<body class="{{abe type='text' key='text_1'}}{{abe type='text' key='text_2'}}"> | ||
|
||
</body> | ||
</html> | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.