All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.3.2 - 2022-02-14
- Unquoted attribute values are now correctly parsed.
0.3.1 - 2022-02-13
- Blocks are now parsed as raw text with two exceptions:
template
blocks with nolang
attribute,template
blocks with alang
attribute set tohtml
.
0.3.0 - 2022-02-06
- Added
Raw
struct for raw sections. - Added
InvalidRaw
error.
Section::Raw
now contains aRaw
.
- Fixed parsing of trailing raw sections, which could be empty if they contained only
\r
&\n
.
0.2.0 - 2022-02-03
- Added
AttributeName::from_cow_unchecked
. - Added
AttributeValue::from_cow_unchecked
. - Added
BlockName::from_cow_unchecked
. - Added errors:
ast::InvalidBlockName
,ast::InvalidAttributeName
,ast::InvalidAttributeValue
,error::Error
.
- Removed
AttributeName::new
. - Removed
AttributeValue::new
. - Removed
BlockName::new
. - Removed
IllegalCharError
. - Removed re-export of
ParseError
.
AttributeName
,AttributeValue
andBlockName
now implementsPartialOrd
,Ord
andDefault
.Section
andBlock
now implementsPartialOrd
,Ord
andHash
.- Renamed
AttributeName::try_new
tofrom_cow
. - Renamed
AttributeValue::try_new
tofrom_cow
. - Renamed
BlockName::try_new
tofrom_cow
.
- Fixed nested tags parsing.
- Fixed comments being parsed as block, (tag name must now begin with an ASCII alpha).
- Fixed consecutive blocks not being parsed.
0.1.0 - 2022-02-02
- Initial release.