Putting Partials Code in Pattern Library