It would be nice if you would provide lean and slick wrapper code to allow other developers to include shariff within their modules.
One way of including shariff would be to have only the shariff code within a template that can be imported from any other template.
I think of something like:
class MyModule
{
public function compile()
{
$this->Template->shariff = array(
'services' => array('twitter', 'googleplus'),
// various settings for shariff.
);
}
}
The custom template of the user/another developer:
<!-- ... custom template code... -->
<?php $this->insert('hoff_shariff', $this->shariff); ?>
<!-- ... even more template code ... -->
The content of hoff_shariff.html5 would be something like:
It would be nice if you would provide lean and slick wrapper code to allow other developers to include shariff within their modules.
One way of including shariff would be to have only the shariff code within a template that can be imported from any other template.
I think of something like:
The custom template of the user/another developer:
The content of
hoff_shariff.html5
would be something like: