Can I protect my content via the template rather than a shortcode?

Hi I am creating a site with a custom template and I am using the membership plugin. I would like to set a specific area of my page to be protected and was wondering if this is possible to do in the template code itself? I assume there is a php equivelant to [level-one][/level-one] that I could use? I just don't know what it is...