Last active
August 29, 2015 13:57
-
-
Save Tim-Machine/9620501 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <!-- fires blog-entries event, limit is a param being passed on the even. All the template logica would be | |
| handeled in the blog-entries handler. | |
| --> | |
| <div id="blog" data-simplex="blog-entries" data-limit="20"> | |
| <div class="entry"> | |
| <!-- append author name to end of string would return `Written by: Tim-Machine` --> | |
| <div class="blog_author" data-var="author_name" data-placement="append">Written by: </div> | |
| <!-- replace `date` with the correcly formatted dynamic date --> | |
| <div class="blog_postDate" data-var="pub_date" data-placement="replace{date}" data-format="m-d-Y" >date</div> | |
| <!-- replace `content` with dynamic content while leaving the paragraph tags in place--> | |
| <div class="content" data-var="content" data-placement="replace{content}"> | |
| <!-- any variable avaiable in this scope is avaiable if its wrapped in curley brackets --> | |
| <div id="blog_img" data-simplex="if" data-statment="image != '' "> | |
| <img src="{image}" /> | |
| </div> | |
| <p>content</p> | |
| </div> | |
| </div> | |
| </div> |
righteo, looks pretty good
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Depends on how you want to do it,
Need clean way to do this with out the data-simplex designator also.
This could work but my goal is to keep the HTML as clean as possible