Jump to content

Recommended Posts

Posted

The way I code, I like to make my code as tiny as possible, and to repeat myself as little as possible. Since my website has an identical head and footer for like 99% of every page I plan to make, what kind of solution do you think I should use? A long time ago I'd used php includes, but eventually I learned more about php and learned to immensely dislike it hahaha. Is there a similar way to do this with rails or another solution?

Posted

I see :0 ! Html includes sound useful, but it might be problematic if they have javascript disabled. Plus, most of that repeated information is header stuff that wouldn't be easy to offload in that way.

I'll have to look up Django though :0

Posted

I doubt you'd have to worry about JavaScript because hardly anyone has it disabled now but you can include a "Please enable JavaScript to view content".

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...