for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://www.github.com/tinydots/craft-front-matter
* @copyright Copyright (c) Mike Pepper
* @license MIT
*/
namespace tinydots\frontmatter\variables;
use tinydots\frontmatter\FrontMatter;
* Class FrontMatterVariable
*
* @author Mike Pepper <[email protected]>
* @since 1.0.0
class FrontMatterVariable
{
public function parse($template)
return FrontMatter::$plugin->frontMatter->parseTemplate($template)->getYAML();
}
public function source($template)
return FrontMatter::$plugin->frontMatter->parseTemplate($template)->getContent();