Posts made by Martin Dougiamas

Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
It's a good thought ... it might be overkill to actually use Smarty right now but we could still use the basic syntax already and integrate Smarty more easily later if needed.

Just a search and replace would do. For example, the example above in Smarty format would be:

<center>
{$field1}
<br />
<strong>{$field2}</strong>
</center>

Where {$field1} gets replaced with all the other information to identify the image and display it properly:

  <img src="http://moodle.org/mod/data/image.php?id=332&name=4321.jpg" height="560" width="600" />


And {$field2} gets replaced with:

   My cool picture which I took myself (from a web site I found in Google).