summaryrefslogtreecommitdiff
path: root/src/rebar_templater.erl
Commit message (Collapse)AuthorAgeFilesLines
* down to last 2 dialyzer errorsTristan Sloughter2014-09-211-1/+1
|
* more dialyzer fun. no likey opaque typesTristan Sloughter2014-09-211-1/+1
|
* add plugin templateTristan Sloughter2014-09-201-0/+2
|
* wip: move to erlydtl for rebar templatesTristan Sloughter2014-09-171-16/+30
|
* update templatingTristan Sloughter2014-09-161-13/+14
|
* use INFO instead of CONSOLE in templaterTristan Sloughter2014-08-241-3/+3
|
* add some templatesTristan Sloughter2014-08-241-5/+4
|
* rename deps providerTristan Sloughter2014-08-231-31/+31
|
* allow new project dir for templateTristan Sloughter2014-08-231-9/+11
|
* add back templatingTristan Sloughter2014-08-231-54/+17
|
* Fix OS X resource fork handling (Reported-by: Richard O'Keefe)Tuncer Ayaz2014-07-251-1/+1
| | | | | | | | | If you happen to fetch a zip archive of the git repo and try to build from that, you may, for example, ask erlc to build src/._rebar.erl. ._* are OS X resource forks and not real .erl files. This may also happen with network filesystems on OS X. To fix that, limit the files compiled by rebar to include only those which start with a letter or a digit.
* Merge pull request #195 from fgallaire/switch_template_instructionsTristan Sloughter2014-06-141-0/+12
|\ | | | | Switch template instructions
| * A switch variable can have multiple valuesFlorent Gallaire2013-12-111-3/+4
| |
| * Support switch template instructionsFlorent Gallaire2013-12-111-0/+11
| |
* | Fix #226Tuncer Ayaz2014-03-111-1/+2
| | | | | | | | | | | | Running 'rebar list-templates' can take quite a long time, when it has to search the file system. To fix that, make list-templates not recurse by default. To enable recursion, run 'rebar -r list-templates'.
* | Fix #187 (rename mustache to rebar_mustache)Tuncer Ayaz2014-01-011-1/+1
| |
* | Add a library templatePierre Fenoll2013-12-191-0/+11
|/
* Support conditional template instructionsEvax Software2013-09-191-0/+21
|
* Merge pull request #59 from Vagabond/adt-read-lists-from-filesDave Smith2013-02-261-7/+17
|\ | | | | Support reading mustache 'lists' from files
| * Support reading mustache 'lists' from filesAndrew Thompson2013-01-301-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit add support for reading mustache 'lists' from files, so you can use the list section functionality when templating things. An example of the list syntax is as follows: {package_commands, {list, [[{name, "riak"}], [{name, "riak-admin"}], [{name, "search-cmd"}]]}}. Then you can, for each of the list elements, render some text: {{#package_commands}} chmod +x bin/{{name}} {{/package_commands}}
* | Implement 'rebar help CMD1 CMD2' and extend common 'rebar help' msgTuncer Ayaz2012-12-311-0/+24
|/ | | | | * allow plugins to print help message for implemented commands * append core rebar.config options to common 'rebar help' message
* Do not use application:set_envTuncer Ayaz2012-07-231-31/+32
|
* Do not use rebar_config:set_global in rebar_templaterTuncer Ayaz2012-07-131-38/+34
|
* Do not use process dict in rebar_templaterTuncer Ayaz2012-07-131-59/+61
|
* Use lists:foreach because result is ignoredTuncer Ayaz2012-06-301-10/+11
|
* Decrease indentation in list-templates printoutTuncer Ayaz2012-06-301-1/+1
|
* Fix crash introduced in 4414f65 via pull/245Tuncer Ayaz2012-06-301-2/+2
|
* rebar_templater: fix commentTuncer Ayaz2012-06-301-1/+1
|
* Fix whitespace errorsTuncer Ayaz2012-06-111-3/+5
|
* List substitution variable names in 'list-templates' command.hirschen2012-06-111-1/+5
|
* Fix typos in rebar_templaterJesse Gumm2012-02-171-2/+2
|
* Use same variable names as file:make_link/2Tuncer Ayaz2011-10-211-3/+3
|
* Add possibility to make symbolic linksPrzemysław Dąbek2011-10-201-0/+10
| | | | Simple feature, useful to make link to something without copying it.
* Fix error handling bug in {copy,In,Out} templateTuncer Ayaz2011-07-181-4/+4
|
* Use filename:join/1Tuncer Ayaz2011-07-181-2/+2
|
* Add support for {copy, src, dst} to templatercloudhead2011-07-081-0/+11
|
* Centralize variable resolution; add target_dir variableDave Smith2011-04-101-21/+27
|
* Add support for loading template vars from external fileDave Smith2011-04-101-3/+19
|
* Clean up codeTuncer Ayaz2011-02-061-35/+52
|
* Clean up emacs file local variablesTuncer Ayaz2011-01-311-1/+1
|
* Simplify and cleanup rebar_templaterTuncer Ayaz2011-01-131-10/+11
|
* Fix file existence checksTuncer Ayaz2011-01-131-1/+1
|
* Fix code clarityTuncer Ayaz2011-01-131-3/+3
|
* Support single level of nested template variablesDavid Reid2010-12-221-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for defining template variables of the following form: {variables, [{appid, "mochiwebapp"}, {author, "Mochi Media <dev@mochimedia.com>"}, {year, "2010"}, {version, "0.1"}, {port, 8080}, {dest, "{{appid}}"}]}. Where dest may be overridden on the commandline but will default to being the appid. Mochiweb uses this so that we can create new projects from the template in a configurable directory. So $ rebar create template=mochiwebapp dest=foo appid=bar I thought about special casing dest but figured it might be generally useful to be able to nest template vars. However this patch only does one level of resolution. So if {variables, [{foo, "{{bar}}"}, {bar, "{{foo}}"}]}. then bar will end up being the literal string {{bar}} and foo the literal string {{foo}}.
* Tidier improvementsKostis Sagonas2010-10-261-4/+4
|
* Dialyzer related cleanupsKostis Sagonas2010-10-101-3/+5
|
* Add support for specifying template directory on the command lineDave Smith2010-08-281-1/+10
|
* Fix bug 438; add support for listing available templatesDave Smith2010-08-201-0/+15
|
* Add forward-compatible escript_foldl functionTuncer Ayaz2010-03-051-2/+5
| | | | | | escript:foldl/3 was undocumented and has been replaced with better APIs post-R13B04. The new exported funs are officially documented.
* Fix bug in templater where escript was not found in subdirs were specified ↵Dave Smith2010-02-201-4/+6
| | | | in rebar.config; minor formatting cleanups