def publishiter(self, mydict = None):
		"""
		Return an iterator usable to publish the template with its tags
		replaced, and allow for some last minute (stateless) changes.

		Arguments:
			mydict -- optional dictionary with tags:value that
			          do not apply to the template state. In other
			          words, you can supply tag-values with higher
			          precedence than template instance wide
			          defined/implied tags.
		"""
		tags = dict(self.tags)
		if mydict:
		    tags.update(mydict)

		stringsiter = iter(self.strings)
		yield stringsiter.next()
		while True:
			yield tags[stringsiter.next()]
			yield stringsiter.next()

		Return an iterator usable to publish the template with its tags
		replaced, and allow for some last minute (stateless) changes.

		Arguments:
			mydict -- optional dictionary with tags:value that
			          do not apply to the template state. In other
			          words, you can supply tag-values with higher
			          precedence than template instance wide
			          defined/implied tags.
		
recipes/Python/577203_Userfriendly_Webpage_Template/recipe-577203.py