woofie's toolbox - moving pages to webtv service
Moving files to the webtv service may prove to be a bit different than moving files to typical web servers. If the files are .html files, then read
this
. If you are converting your files to .tmpl files, then the following may smooth the transition. The webtv service will look for special tags and variables which it may confuse with javascript on your page. For instance, .tmpl file variables look like {variable-name}. Because of this, you will need to double all the open curly brackets in your javascript to tell the service to ignore the open curly bracket. Other tips follow below. There are key things to note:
Open Curly Brackets: Double ALL of these. { becomes {{.
Leave at least one space before and after all curly brackets. Curly brackets against letters get interpreted as webtv server variables.
Close Curly Brackets: It might be good to double all of these as well. To be tested.
Double-slash javascript comment indicator (//): Get rid of all javascript comments.
HTML comments: <!-- and --> sometimes get interpreted differently. In javascript, the -- part of the comment looks like a decrement operator '--' . It's best to remove these as well.
Change .html file extensions to .tmpl in links where necessary.
Replace placeholder ads with the as insertion system of your choice.