Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Use CF Framework for mostly HTML site?

Explorer ,
Nov 09, 2010 Nov 09, 2010

Hi,

I have a side job coming up that will be mostly html, and maybe a contact form or login for that I'll need Coldfusion for.  Since I like the organization that a MVC framework gives me, I'd like to use one, but I don't know if that is really necessary or not since there won't be much of a model to this site.  I have experience with Fusebox (don't like it), Mach-II (like it), and Model-Glue (not much experience).  I haven't made a straight up HTML site in so long.  Should I use Coldfusion at all?  If most of the files are HTML the Coldfusion server will not even have to process them, correct?  If I use a framework than the CF server will be in use for every page.  I guess I'm just looking for direction.  Is it worth it to use coldfusion and also a framework?

Thanks

754
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 09, 2010 Nov 09, 2010

If the site requires a login, you need a mechanism to only let users see pages they're allowed to see. You can't really do that with HTML alone.

However, generally, if content isn't dynamic you might as well put it in HTML files.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

GSA Schedule, and provides the highest caliber vendor-authorized

instruction at our training centers, online, or onsite.

Read this before you post:

http://forums.adobe.com/thread/607238

Dave Watts, Eidolon LLC
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Nov 09, 2010 Nov 09, 2010

Hi,

Since its a HTML site, my advice is don't complicate your tasks too much. You can simply split your code by making a directory hierarchy like,

Your_application

                    |_   css                  

                    |_    images

                    |_    templates

                    |_    documents

But, if you see possiblity of some CF inclusion in your site in near feature, better go for some CF specific frameworks like Mach-II (your favourite one).

HTH

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 09, 2010 Nov 09, 2010

In cases where I have a mostly HTML site with very little interaction with a

Model layer, I just focus on breaking up the site with Custom Tags.

I find this helps me keep the HTML consistent and to find any markup bugs.

It also helps me focus on the content, when it needs to change.

Here's an example of how I structure a page:

Welcome to Clark's Liner Farm.

A Shrubbery


We are a full service nursery, liner farm and propagator. We sell wholesale


nursery liners, potted liners, rooted cuttings and starter plants from 2


¼" 32 to 2 gallon pots.


We specialize in hard to grow varieties and our greenhouses are often full


of Nandina, Cephalotaxus, Abelia, Spriaea, Green Giant and Viburnum.




Family
Operation


Clark's Liner Farm is a family run operation with a combined 26 years of


experience in the nursery and landscaping fields. Both Matt and Debbie Matt


are North Carolina State University graduates with degrees in Horticulture.




NC State

</layout:body

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 09, 2010 Nov 09, 2010

Thanks for the input.  So it sounds like it's not a big deal if I use CF and Mach-II.  There just won't be much of a model layer.  I was worried about the site being slow because of the CF processing, but there won't be much CF processing so it should be pretty fast.

Thanks,

Ben

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 09, 2010 Nov 09, 2010

MachII isn't going to slow down your site much at all.

Site slowdowns are almost always caused by shared resource contention. Like

running out of threads because lots of users are uploading large files, or

slow database queries causing other calls to the database to queue.

Processing essentially static pages with MachII (or any other framework I

know of in ColdFusion) won't be an issue.

DW

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 09, 2010 Nov 09, 2010
LATEST

Try Wheels. I love it and think you will also. Straight view pages would be easy with the convention. http://cfwheels.org/docs/1-1/chapter/beginner-tutorial-hello-world

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources