This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CheckoutsHelper | |
def checkout_progress | |
steps = Checkout.state_names.reject { |n| n == "complete" }.map do |state| | |
next if state == "confirm" and not (Gateway.current && Gateway.current.payment_profiles_supported?) | |
text = t("checkout_steps.#{state}") | |
css_classes = [] | |
current_index = Checkout.state_names.index(@checkout.state) | |
state_index = Checkout.state_names.index(state) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[clojure.java.io :as io] | |
'[clojure.string :as string] | |
'[clojure.tools.cli :refer [parse-opts]]) | |
(def cli-options | |
[["-o" "--out DIR" "Output directory" | |
:default "out"] | |
["-s" "--source SOURCE" "Source directory" | |
:default "source/_posts"] | |
["-h" "--help"]]) |