W2Tags Is Haml In Erb

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    W2Tags Is Haml In Erb - Presentation Transcript

    1. http://github.com/wharsojo/w2tags/tree
    2. Work: SKYEIGHT (S8) ➢ At-Work: monorails/NET 2.0 ➢ Outside-Work: ruby/javascript ➢
    3. ●Markup (Haml like) Language ●Patern Builder ●Development Tools ●A GEM ●a ... ●
    4. PRINCIPLES: Should be Beautiful Should be DRY Should be well-indented Structure should be clear
    5. PRINCIPLES: Should be Beautiful Should be DRY Should be well-indented Structure should be clear
    6. 1 1 2 2
    7. Markup Tags now: Beautiful DRY well-indented clear
    8. What I need: a Patern on view in Development Fast View on Production keep'n something..
    9. COMMANDS MACRO TAGS MACRO END-TAGS HOT MACRO PATERN SHORT-CUT TAGS of “DIV” SHORT-CUT NEXT-TAGS
    10. COMMANDS Include HOT(!hot!) Include Partial(!inc!)
    11. COMMANDS Include HOT(!hot!) Include Partial(!inc!)
    12. MACRO TAGS begin with “%” and it can combine with: One css selector of ID(#) Multiple css selector of Class(.) Costume Attribute ({}) Ruby code (=) Ruby string (==) W2TAGS example: Name Attribute (:) %h1 List User <h1>List User</h1> %h2#title List User <h2 id=”title”>List User</h2> %h2#title.blink.light List User <h2 id=”title” class=”blink light”>List User</h2>
    13. MACRO END-TAGS - ,/ to pop-all end of tags - ~/ to pop n-tags, depend on how many tilde (“~”) you put it on.
    14. HOT MACRO PATERN A defined patern of W2TAGS inside HOT files, it can be like a TAGS: begin with >>tag_name W2TAGS macro (it can multi line) !~ (next tags) <</ (end of tags) See sample on the left, using it - just like regular W2TAGS %h1 Contacts - or using “-” -contact Widi Harsojo;.....
    15. HOT MACRO PATERN Inside hot there some vars like: - $0 .. $9 for parameter. - name id class - defined variable
    16. HOT MACRO PATERN Inside hot there some vars like: - $0 .. $9 for parameter. - name id class - defined variable Var from name id class: - $: - $# - $. - *all* - *opt* - *id* - *name* - *class*
    17. HOT MACRO PATERN Inside hot there some vars like: - $0 .. $9 for parameter. - name id class - defined variable Defined variable: - @samevar=.. - &uniqvar=...
    18. SHORT-CUT TAGS of “DIV” Short cut to DIV begin with css selector of ID(#) Class(.) W2TAGS example: #title List User <div id=”title”>List User</div>
    19. SHORT-CUT NEXT-TAGS
    20. Command line Dev View in Rails Dev View in Merb

    + widi harsojowidi harsojo, 2 years ago

    custom

    596 views, 1 favs, 3 embeds more stats

    w2tags, its a way to tags!

    More info about this document

    CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

    Go to text version

    • Total Views 596
      • 565 on SlideShare
      • 31 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 13
    Most viewed embeds
    • 15 views on http://wharsojo.wordpress.com
    • 11 views on http://bintangjatuh.com
    • 5 views on http://ariekusumaatmaja.wordpress.com

    more

    All embeds
    • 15 views on http://wharsojo.wordpress.com
    • 11 views on http://bintangjatuh.com
    • 5 views on http://ariekusumaatmaja.wordpress.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories