I've given up smoking several times, the last time, successfully, about 3 years ago. The previous attempt was pretty much doomed - it was mid-August 2001 and I was living in lower Manhattan.
The thing that is most difficult about nicotine is that it is intimately connected with the way your brain processes novelty. If you're a smoker and you're learning (say) a new language or API, your body automatically makes you light cigarettes and smoke them; you only become aware that you have been smoking when you're stubbing them out.
Pouring molten solder into a mold seems kind of crude; solder is rather blobby even with flux.
I'd have thought that using printer technology would be easier. You could print conductive areas and semiconductors and resistors directly onto an insulator. You could make 3D objects as papercraft.
My project, phpSprockets (http://code.google.com/p/phpsprockets/) does nested markup by working as a node system. After all, if you're going to generate HTML in code you might as well do it in an object oriented way.
$table = new Sprocket( 'table' );
$tr = $table->tr();
$tr->td( "OMG I'm in a sprocket" );
I've done similar things using XElement in C#, though using PHP's magic methods makes for very short readable code.
I agree that templates are handy for separation of concerns though.