Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Investigate idea of passing data into a pattern #123

Open
daveredfern opened this issue Nov 4, 2016 · 0 comments
Open

Investigate idea of passing data into a pattern #123

daveredfern opened this issue Nov 4, 2016 · 0 comments

Comments

@daveredfern
Copy link
Member

It would be great to be able to pass data into a pattern. So we could have something like:

<?php
$data = array(
'text' => 'We have a special offer today!'
);
printPattern('component/alert/base', $data);
?>

Not entirely sure how this would work but would save lots of copying and pasting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants