{"id":1422,"date":"2010-10-01T14:19:28","date_gmt":"2010-10-01T13:19:28","guid":{"rendered":"http:\/\/www.maratz.com\/blog\/?p=1422"},"modified":"2012-12-23T15:32:43","modified_gmt":"2012-12-23T14:32:43","slug":"export-your-php-based-prototype-to-html","status":"publish","type":"post","link":"https:\/\/www.maratz.com\/blog\/archives\/2010\/10\/01\/export-your-php-based-prototype-to-html\/","title":{"rendered":"Export your <abbr>PHP<\/abbr> based prototype to <abbr>HTML<\/abbr>"},"content":{"rendered":"<p><abbr>PHP<\/abbr> is quite handy for creating local interface prototypes and for easier template management with regular backs and forths that are a part of every project. Having your prototype built with a programming language allows you to quickly make changes on multiple templates all at once.<\/p>\n<p>When the time comes to deliver the prototype, it\u2019s best if you can convert it to a pure <abbr>HTML<\/abbr> form, especially if the backend development team works with a different programming language\u2026 You can do that with a handy command line tool <a href=\"http:\/\/www.gnu.org\/software\/wget\/\">wget<\/a>. It can mirror any website, public or local \u2014 and tidy it nicely in your local folder. The command is actually quite simple:<\/p>\n<pre><code>wget -m -k -p http:\/\/www.myprototype.dev\/<\/code><\/pre>\n<p>The only thing that you have to do manually is to copy <abbr>CSS<\/abbr> images folder. At the time of this writing, wget still couldn\u2019t read <abbr>CSS<\/abbr> files nor get paths to <abbr>CSS<\/abbr> background images.<\/p>\n<p>Some other uses can be found in <a href=\"http:\/\/lifehacker.com\/161202\/geek-to-live--mastering-wget\">Mastering wget<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP is quite handy for creating local interface prototypes and for easier template management with regular backs and forths that are a part of every project. Having your prototype built with a programming language allows you to quickly make changes on multiple templates all at once. When the time comes to deliver the prototype, it\u2019s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,17],"tags":[],"_links":{"self":[{"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/posts\/1422"}],"collection":[{"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/comments?post=1422"}],"version-history":[{"count":0,"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/posts\/1422\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/media?parent=1422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/categories?post=1422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/tags?post=1422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}