I've been wanting this for a long time, too. Some hledger commands now use a template for overall layout, eg see the
part inside [lt| ... |] at http://joyful.com/darcsden/simon/hledger/browse/hledger/Hledger/Cli/Incomestatement.hs#L-21 .
In future, it will be possible for the user to use a custom template at runtime, and I think even this limited control
will be quite useful. More fine-grained templating may also be useful, for customisation or just to clarify the code. I
discovered I needed intermediate, presentation-oriented "report" structures to separate the data and layout concerns,
like http://joyful.com/darcsden/simon/hledger/browse/hledger-lib/Hledger/Reports.hs#L-523 . Maybe ledger does the same.
- Templating for more complicated reports? Zack Williams
- Re: Templating for more complicated reports? Russell Adams
- Re: Templating for more complicated reports? Alexandre Rademaker
- Re: Templating for more complicated reports? Simon Michael
