Commit Graph

38 Commits

Author SHA1 Message Date
hacksalot 42d249b407
chore: decaffeinate: fix eslint violations 2018-02-14 10:02:44 -05:00
decaffeinate 8a46d642e5
chore: decaffeinate: convert error.coffee and 58 other files to JS 2018-02-14 09:56:31 -05:00
decaffeinate b7cd01597e
chore: decaffeinate: rename error.coffee and 58 other files from .coffee to .js 2018-02-14 09:55:12 -05:00
hacksalot 8648befcdd
feat: introduce stringOrObject & linkMD helpers 2018-02-07 23:35:05 -05:00
hacksalot c08c5f0fa3
feat: introduce two skill-related helpers 2018-02-07 05:55:27 -05:00
hacksalot 38a073b09a
feat: improve template helper wiring 2018-02-07 05:49:02 -05:00
hacksalot 55196c2766
fix: prevent weird characters in date fields 2018-02-04 01:13:02 -05:00
hacksalot 1dbb78c53f
feat: improve custom theme helper registration 2018-02-01 07:00:59 -05:00
hacksalot 069506e86d
feat: support custom theme helpers 2018-01-31 21:11:21 -05:00
hacksalot 097e81caf8
Merge pull request #191 from ryneeverett/theme-helpers
Register handlebars helpers in themes. Fix #158.
2018-01-27 17:44:36 -05:00
ryneeverett ec591b9432 Register handlebars helpers in themes. Fix #158.
Try to register all javascript files found in themes as handlebars
helpers.

Note that, unlike all other theme files currently, format directories
are ignored. I don't think there's a use case for format-specific
helpers, and this gives theme developers the flexibility to put them
either in top level files or organize them in subdirectories however
they see fit.

Note also that the theme format seems to be primarily documented in
<https://github.com/fresh-standard/fresh-themes>. This newly recognized
theme file type should be documented there should this branch be merged.
2017-01-20 22:53:16 -05:00
ryneeverett d31f6caf50 When date ranges are identical, only show one. 2017-01-06 22:37:08 -05:00
hacksalot 917fd8e3f3 Refactor helpers.
Rebind Handlebars helpers to drop the pesky options hash for standalone
helpers that don't need it. Move block helpers (which do need the
Handlebars options/context) to a separate file for special handling.
2016-02-14 04:10:23 -05:00
hacksalot 7c36ff8331 Introduce "date" helper. 2016-02-13 22:54:07 -05:00
hacksalot daeffd27b5 Remove HB reference from generic helpers. 2016-02-11 22:06:43 -05:00
hacksalot 31e0bb69cc Introduce "pad()" helper.
Introduce a helper to emit padded strings / arrays of strings.
2016-02-11 22:02:50 -05:00
hacksalot 317a250917 Gather. 2016-02-11 11:48:44 -05:00
hacksalot 1bc4263a46 Aerate. 2016-02-09 10:50:10 -05:00
hacksalot e191af1fb0 Fix glitch in converted CoffeeScript.
Replace naked ternary with if then else.
2016-02-09 10:41:48 -05:00
hacksalot 7c0a9bcc02 Aerate. 2016-02-09 10:37:33 -05:00
hacksalot 896b7055c1 Fix issue with undefined sections.
Fixes #127.
2016-01-29 15:50:21 -05:00
hacksalot 0f65e4c9f3 Finish HackMyCore reshaping.
Reintroduce HackMyCore, dropping the interim submodule, and reorganize
and improve tests.
2016-01-29 15:23:57 -05:00
hacksalot d3194fba19 Relocate internal sources to HackMyAPI.
Move internal sources and related tests to:

https://github.com/hacksalot/HackMyAPI
2016-01-24 09:55:04 -05:00
hacksalot e6d2255291 Scrub. 2016-01-23 23:30:48 -05:00
hacksalot 2840ec3f87 Introduce {{fontSize}} helper. 2016-01-23 22:40:33 -05:00
hacksalot 20961afb62 Introduce {{color}} helper. 2016-01-23 20:24:35 -05:00
hacksalot 1256095e25 Support "fonts.all" in FRESH themes.
Add support for default font specs in FRESH theme.json files. The "all"
format matches any format that doesn't have a specific key in "fonts".
2016-01-23 03:58:11 -05:00
hacksalot f073c79b8d Better dynamic font handling. 2016-01-22 22:19:28 -05:00
hacksalot 915f35b1e6 Improve Underscore.js rendering support. 2016-01-22 10:36:26 -05:00
hacksalot 4fe74057f9 Improve font helpers.
Log a warning on incorrect use.
2016-01-22 08:33:01 -05:00
hacksalot 7b3364c356 Document parameter. 2016-01-22 02:44:17 -05:00
hacksalot 58a7fc09e5 Add toUpper helper. 2016-01-22 02:44:04 -05:00
hacksalot a935fe7dc2 Introduce {{fontFace}} helper. 2016-01-21 23:39:30 -05:00
hacksalot 6b171e69db Improve CSS handling. 2016-01-21 05:21:49 -05:00
hacksalot c98d05270e Improve error handling. 2016-01-18 17:13:37 -05:00
hacksalot 3e3803ed85 Improve error handling. 2016-01-18 14:10:35 -05:00
hacksalot 0829800b65 Move helpers to /helpers. 2016-01-09 22:13:29 -05:00
hacksalot d7cfc76636 Promote console helpers has to console-helpers.js. 2016-01-09 22:11:06 -05:00