WayneBrantley wrote:
Cadmium,
I was looking at doing a few templates. I quickly realized I was going to have to write a bunch of common functions to get the job done.
Would you mind sharing? Maybe create a standard set of common/useful functions to help with the templates.
I wouldn't mind sharing, but the stuff I have is rather specific to what I'm doing, which is basically generating a crud site. And since I'm new to writing this stuff, probably not very well written. And what is there assumes a lot about the way the application is built. Besides, the most interesting functions I have so far I stole from the manager templates
I'm not trying to be super secretive or stingy or anything, but specifically I'm trying to build a better app than http://www.xlinesoft.com/asprunnerpro/
It outputs sh*t (classic) asp code that is impossible to work with (though I think in the latest version they've added code regions). My boss is too cheap_frugal_ to buy the .net version (which still probably sucks) or another app, so the only hope I have is to write something in house.
I have made some modifications to the project file task performer to better deal with aspx pages and codebehind, as well as a bare bones solution file task performer. Both are very hackey at this point though
*Full disclosure: I know generated crud sites are limited and stupid and suck and all of that and I know there are other website code generators out there (IronSpeed,Codecharge, etc) and I'm probably wasting my time
Otis wrote:
Another idea might be to add the methods you need to share among templates to a class in an assembly.
I may have to try that as I'm getting more comfortable working with this stuff.