Trevor Wennblom
Trevor Wennblom
% rails -v Rails 3.0.0.beta % ruby -v ruby 1.9.2dev (2010-02-03 trunk 26544) [x86_64-darwin10.2.0] % rails myapp % cd myapp % bundle pack Copying .gem files into vendor/cache * text-hyphen-1.0.0.gem...
it may be more clear to use the extensions ".tsv" or ".txt" if using tab-separated values. http://en.wikipedia.org/wiki/Tab-separated_values http://en.wikipedia.org/wiki/Comma-separated_values
``` clj (clj-yaml.core/generate-string {:x :y :a "b"} :dumper-options {:flow-style :flow}) ;= "{x: y, a: b}\n" (clj-yaml.core/generate-string {:x :y :a "b"} :dumper-options {:flow-style :block}) ;= "x: y\na: b\n" (clj-yaml.core/generate-string {:x :y...
Perhaps something like `{:native-keywords true :native-symbols true :native-vectors false}` - With native keywords and symbols: ``` clj => (println (yaml-dump ['a/b/c :d/e/f (symbol "stuff and/or things") (keyword "other and/or widgets")]))...
``` clj ;; works: (def typed-data-yaml " the-bin: !!binary 0101") (clj-yaml.core/parse-string typed-data-yaml) ;= {:the-bin #} (clj-yaml.core/generate-string (clj-yaml.core/parse-string typed-data-yaml) :dumper-options {:flow-style :block}) ;= "the-bin: !!binary |-\n 0101\n" ;; generate-string creates a...
"Dump" and "Load" are idiomatic methods within YAML (including SnakeYAML), see: - http://yaml.org/spec/current.html#id2504671 - http://pyyaml.org/wiki/PyYAMLDocumentation - http://ruby-doc.org/stdlib-2.0/libdoc/yaml/rdoc/YAML.html#label-Usage
clooj currently indents the following last line as: ``` clj (defn str (^String [x & ys] ((fn [^StringBuilder sb more] (if more (recur (. sb (append (str (first more)))) (next...
selmer v0.8.2 General project layout: ``` [projectpath]/project.clj [projectpath]/src/... [projectpath]/templates/layouts/main.html [projectpath]/templates/includes/footer.html ``` Declared in `proect.clj`: `:resource-paths ["public" "resources" "templates"]` This works: ``` (selmer.parser/render-file "layouts/main.html") ``` However when adding `{% include "includes/footer.html"...