Skip to content

Instantly share code, notes, and snippets.

View deroses's full-sized avatar

Adam Rose deroses

View GitHub Profile
@deroses
deroses / gist:b3401074723661c0e906a384d5c12f57
Last active July 27, 2018 18:46 — forked from ffub/gist:1084424
Balsamiq HTML export
#!/usr/bin/php
<?php
//added functionality to set offset as part of CLI arguments (so hyperlinks line up correctly)
error_reporting(E_ALL);
if (count($argv) <= 1) {
print("usage createMockup src_dir dst_dir images_dir x_offset y_offset\n");
print("\tsrc_dir : dir where all bmml file are\n");
print("\tdst_dir : dir where write all html files\n");
print("\timages_dir : dir where all export mockup png are (will be copied to the \$dst_dir/images directory)\n");
print("\tx_offset : x offset to make sure monospacing doesn't mess up your hyperlinks\n");