Assignment
Project name and homepage: Nette Framework
Nette is open source framework for creating PHP web applications. It has its own templating system called Latte.
One of Latte’s features is support for macros. There are user defined macros and system macros. n:ifcontent is one of newly added in recently released version (Nette 2.1). This macro is used to conditionally render a HTML container (e.g. <div>) based on its content (it will render the container only if is not empty). There is a problem with current implementation: if the content of container consist only of non-printable characters (like EOL, tabs, spaces), it is also rendered. My goal is to fix this issue.
Links documenting the results of my work
- Issue link on Github (contains my communication with developers)
- Git repo with my fork of Nette Framework
- Pull request on Github
- Latte documentation
- Release note for Nette 2.1.2 (contains my fix)