Fixes #7 (dynamic partials)

Hope this is as you want it, let me know if any problems