dati

A Go library/binary to parse & execute data against template langauges.
git clone git://src.gearsix.net/dati
Log | Files | Refs | Atom | README | LICENSE

CHANGELOG.md (3537B)


      1 
      2 ## v1.4.1
      3 
      4 - Overhaul to the repo README documentation to make it a lot more clear
      5 - Minor update to the `-h` for the dati binary
      6 
      7 ## v1.4.0
      8 
      9 - Now using 'hmpl' instead of 'htmpl' for golang html/template files
     10 
     11 ## v1.3.0
     12 
     13 - added (*Template).ExecuteToFile
     14 - made sure the errors returned by `LoadData` and `WriteData` always indicates the DataFormat being parsed. 
     15 - Added 'force' param to `WriteFileData`
     16 - Bugfix in `WriteFileData`, now it creates non-existing files
     17 
     18 ## v1.2.2
     19 
     20 - Added standardised package errors:
     21   `ErrUnsupportedData`, `ErrUnsupportedTemplate`, `ErrUnsupportedTemplateType`, `ErrRootPathIsDir`, `ErrNilTemplate`.
     22 - Minor improvements to comment docs in a few places
     23 - Formatting changes to README.md
     24 - Added some TODO items
     25 
     26 ## v1.2.1
     27 
     28 - updated LICENSE dates
     29 - added `DataWrite` and `DataWriteFile` (with passing tests)
     30 - added TODO file
     31 - Renamed some parameters (more uniform & sensical)
     32 - Renamed a few variables (`err` not `e`)
     33 
     34 ## v1.1.0
     35 
     36 - Added `IsDataFormat` and `IsTemplateLanguage` (with passing tests)
     37 
     38 ## v1.0.0
     39 
     40 - Depreciated functions were removed
     41 - Fix to ReadDataFormat and ReadTemplateLanguage
     42 - Updated cmd/dati.go to use new functions
     43 - Renamed examples/suti.cfg to examples/dati.cfg (fixed dati_test)
     44 
     45 ## v0.8.0
     46 
     47 - rebranded to dati - data and template interface
     48 - Added `LoadDataFile`, depreciated `LoadDataFilepath`
     49 - Added `DataFormat`, `ReadDataFormat` depreciated `SupportedDataLangs`, `IsSupportedDataLang`
     50 - Added `TemplateLanguage`, `ReadTemplateLanguage` depreciated `SupportedTemplateLangs`, `IsSupportedTemplate`
     51 
     52 ## v0.7.0
     53 
     54 - added LoadTemplate, loads templates from io.Reader params.
     55   - Template language and name must be specified.
     56   - This function is the template.go counterpart to data.go#LoadData
     57 - added LoadTemplateStrings loads templates from string params (calls LoadTemplate)
     58 - renamed LoadTemplateFile -> LoadTemplateFilepath
     59 - added []SupportedTemplateLangs, IsSupportedTemplateLang(), []SupportedDataLangs, IsSupportedDataLang()
     60 - renamed suti.Template.Source -> suti.Template.Name
     61   - The .Name value assigned to templates when LoadTemplateFilpath() is called will
     62   be the **base name minus the file extension**.
     63 - Lots of refactors to tidyup, improve consistency & error handling/catches
     64 - Testing is all upto date :)
     65 
     66 ## v0.2.2
     67 
     68 - added .Source to suti.Template, contains the filepath of the source file for the template
     69 - More tidyup
     70 
     71 ## v0.2.1
     72 
     73 - Tidyup work
     74 
     75 ## v0.2.0
     76 
     77 - massive refactored to data API:
     78   - removed type Data, user will want to use their own data types
     79   - LoadData() and LoadDataFile() now takes an interface{} (pointer) to write the result to
     80   - removed LoadDataFiles(), bulk loading is now user responsibility
     81   - removed GenerateSuperData() & MergeData(), these were superfluous fucntions
     82 - added file.go, which currently only has SortFileList() to stand-in for the missing data sort
     83 functionality found in LoadDataFiles()
     84 - refactored cmd/suti.go to work with the new API, no functional changes
     85 - ".mustache" is now accepted as a mustache file extension (as intended)
     86 - bugfixes
     87 
     88 ## v0.1.1
     89 
     90 - updated everything to use the new (t *Template).Execute()
     91 
     92 ## v0.1.0
     93 
     94 - type Template now a struct, the Template interface is accessed via (t *Template).Template
     95 - ExecuteTemplate -> (t *Template).Execute()
     96 - (t *Template).Execute() takes an interface{} param to execute against (not Data)
     97 - improved error messaging
     98 
     99 ## v0.0.0
    100 
    101 first release!
    102 
    103 - fully doc'd in README & src comments
    104 - examples/
    105 - first iteration of suti API
    106 - cmd/suti.go
    107