Modifying html-template files in Flex
by Ruben
Via a post by Neil Webb I bumped into a post by Mike Morearty in which he talked about changing the index.template.html file that Flex Builder automatically generates when one of its projects is launched.
As Mike says: "Suppose you want the main HTML file that wraps your Flash app to be deployed as index.aspx instead of index.html. It’s a little trickier than you might think.", and indeed it is.
Since index.template.html is the template-file for the release and debug html-files that are opened when you run your project (in a default project this would be main.html and main-debug.html), you would think that you would merely have to change the template-file into index.template.aspx.
Instead, you have to use macro substitution keywords in the template-file its filename:
But the solution, it turns out, is very easy (although not at all obvious): Give the file the rather cryptic name of…
${application}${build_suffix}.template.aspx
Changing the filenames in Flex Builder html templates
Macro's that are available in html-template files
The latter is a follow-up post about all the different substition keywords you can use to create uber-lengthy filenames
Comments
Thank you so much, usefull +1
Hello
As newly registered user i only want to say hello to everyone else who uses this board