I'm back using WebCore (v2.9) after a gap of a year and am looking to improve my development process. I've posted in the past about my problem (HTML files and direct forms) but here's a recap:
- I use direct forms exclusively.
- Each form has a single TWebHTMLDiv and most forms have no code (or almost no code)
- I use KnockoutJS for an MVVM approach
- All views are developed in VS Code
- All code is in Delphi viewmodels linked to the elements defined in VS Code
- The HTML of the VS Code view is copied to the HTML property of the TWebHTMLDiv
This generally works really well and I have complete separation of code and UI but the problems are:
- The HTML editor in TWebHTMLDiv runs like a dog if there are a few hundred lines of HTML - each character edit takes several seconds.
- More important, the copying of HTML from file to component property is very error prone and it's easy to lose track of changes.
Ideally I'd have the ability to specify a file for the HTML but I have a memory of Bruno suggesting a post-build process where I inject the HTML (but can't find the reference).
I know that WebCore does a bit of HTML manipulation in the background so I'm after some advice on how to implement a post-build process - specifically at which point I should add my HTML that is compatible with WebCore's build process.
Thanks, Bob