XaminProject / handlebars.php

Handlebars processor for php
331 stars 132 forks source link

FilesystemLoader: Updates to be more extendable #117

Closed DaveStein closed 9 years ago

DaveStein commented 9 years ago

Directory setting can be overridden The way a directory is sanitized can be overridden The way options are handled can be overridden

I separated the options handling even though I didn't need it for my use-case, just in case anyone may need that later. Would have been funny for me to split half the constructor but not the other half.

Also for my use case I didn't need to do anything except change the way the way the dir is sanitized ( ie not using realpath in certain situation ). Still made that method so if someone had something more advanced (like an object managing config) to get directories, they could handle it.

Still 100% coverage of course image

fzerorubigd commented 9 years ago

@DaveStein thank you.