diff options
author | Patrick Simianer <p@simianer.de> | 2016-04-16 16:34:33 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-04-16 16:34:33 +0200 |
commit | 95b3e4bb744932ce4eac14bb350cc0455d15848a (patch) | |
tree | c96093d9667c87264a8820d876041fe96b068f57 /ebay_template | |
parent | fca926851e1d56eeb0044727fe976252d646f48d (diff) |
mv
Diffstat (limited to 'ebay_template')
-rwxr-xr-x | ebay_template | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/ebay_template b/ebay_template deleted file mode 100755 index 770aa56..0000000 --- a/ebay_template +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env ruby - -require 'haml' - -template = ' -%div(style="margin:2em;border:0;background:#ffffcc;font-family:Georgia") - %div(style="margin:1em") - %h1(style="border-bottom:2px solid #fff") - Name - %p(style="margin-left:5%") - Beschreibung - %div(style="margin-left:10%") - %h2 Bilder: - - picCount.times do |i| - %a(href="http://pks.rocks/ebay/#{picName}#{i+1}.jpg" target="_blank") - %img(style="border:2px solid blue;float:left;margin:20px;" src="http://pks.rocks/ebay/#{picName}#{i+1}t.jpg") - %div(style="clear:left") - %br - %br - %p - Bitte beachten Sie auch meine <a href="http://shop.ebay.de/merchant/iuas81" target="_blank">anderen Artikel</a>!<br />Ersteigern Sie mehrere Artikel, so zahlen Sie nur 1x Versandkosten. - %h3(style="margin-bottom:0px") - Viel Spaß beim Bieten! :-)' - - -if __FILE__ == $0 - picName = ARGV[0] - picCount = ARGV[1] - - haml_engine = Haml::Engine.new(template) - puts haml_engine.render( - Object.new, - locals={:picName => picName, :picCount => picCount.to_i} - ) -end - |