{"id":531,"date":"2018-07-21T06:26:13","date_gmt":"2018-07-21T13:26:13","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=3073"},"modified":"2018-07-21T06:26:13","modified_gmt":"2018-07-21T13:26:13","slug":"emmet-as-a-template-aka-zen-coding","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=531","title":{"rendered":"Emmet as a Template (aka zen-coding)"},"content":{"rendered":"<p>This is not the most useful thing in the world &#8211; was just an idea I had awhile back&#8230; First off, I love <a href=\"https:\/\/emmet.io\/download\/\" target=\"blank\">Emmet<\/a> (formerly zen-coding) created by <a href=\"https:\/\/github.com\/sergeche\" target=\"blank\">Sergey Chikuyonok<\/a>. I especially like it for quickly writing html or jsx.<\/p>\n<p>While I don&#8217;t use them that often, I really enjoy <a href=\"http:\/\/jade-lang.com\/\" taret=\"blank\">Jade<\/a> and <a href=\"https:\/\/pugjs.org\/api\/getting-started.html\">Pug<\/a>. Anyway, I realized you could do similar things with <a href=\"https:\/\/emmet.io\/download\/\" target=\"blank\">Emmet<\/a> with just a few little tweaks&#8230; So created this codepen:<\/p>\n<p><iframe height='300' scrolling='no' title='Emmet as a Template' src='\/\/codepen.io\/ZevanRosser\/embed\/raZzQx\/?height=300&#038;theme-id=5318&#038;default-tab=html,result&#038;embed-version=2' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'>See the Pen <a href='https:\/\/codepen.io\/ZevanRosser\/pen\/raZzQx\/'>Emmet as a Template<\/a> by Zevan Rosser (<a href='https:\/\/codepen.io\/ZevanRosser'>@ZevanRosser<\/a>) on <a href='https:\/\/codepen.io'>CodePen<\/a>.<br \/>\n<\/iframe><\/p>\n<p>As you can see &#8211; with a few regular expressions you can use Emmet _sort of_ like <a href=\"https:\/\/emmet.io\/download\/\" target=\"blank\">Jade<\/a>. Definitely just an experiment, but interesting nevertheless.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is not the most useful thing in the world &#8211; was just an idea I had awhile back&#8230; First off, I love Emmet (formerly zen-coding) created by Sergey Chikuyonok. I especially like it for quickly writing html or jsx. While I don&#8217;t use them that often, I really enjoy Jade and Pug. Anyway, I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[161,160],"tags":[167,168,169],"class_list":["post-531","post","type-post","status-publish","format-standard","hentry","category-html5","category-javascript","tag-emmet","tag-jade","tag-template"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=531"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/531\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}