I have a really dumb question, Christopher. I like this and was viewing your page source of your sample site and noticed the #bbinclude comment directives did not appear there. Maybe I'm missing something, but do you later go through a separate deployment step to scrub comments from the deployed sites? And if so, what do you use for that? I assume that part is outside the BBEdit application and your Code Modules.
On Wednesday, September 8, 2021 at 10:33:23 AM UTC-6 Christopher Werby wrote: > Hi Greg, > > Actually, the Modern Business template that underlies the Sample Website > is using Bootstrap 5. But I'm with you. If it works for your project, > there's little reason to upgrade. > > I'm unfamiliar with your workflow. But Git has saved my ass many many > times in situations like you describe. > > Best, > > On Wednesday, September 8, 2021 at 9:27:27 AM UTC-7 Greg Raven wrote: > >> Many years ago I had some problems with uncoded entities, so I got >> "stuck" encoding them. I have noticed that recent browsers seem to figure >> things out better, perhaps in part due to HTML5 becoming more the norm. >> >> I understand about the different folders, but I always create a project >> based on the build folder, and then manually drag-n-drop the includes >> folder into the project. Again, it's been years since this happened, but >> "updating" an include file by mistake can lead to a long, painful clean-up >> process, so I go to great steps to avoid having it happen. If you've >> mastered this, no problem. >> >> True about the latest version of Bootstrap, but some persons (such as >> myself) have given up on the later versions because for hand coding BS3 >> seems perfectly adequate. I meant, of course, that there's a later version >> of BS4 than the one you're calling. >> >> I'm looking forward to digging into your code base more deeply. >> >> On Wednesday, September 8, 2021 at 9:20:01 AM UTC-7 Christopher Werby >> wrote: >> >>> Hello Greg, >>> >>> Thanks for taking a look! >>> >>> I haven't run across a problem that required special treatment to please >>> the validators, but the bbignore tip sounds like a good one. >>> >>> On a UTF-8 website, why do you prefer the HTML entity © to ©? I >>> haven't seen it rendered incorrectly in years. >>> >>> Optimizing the source code when built for production is a good idea. But >>> keeping the source code readable in development is important to me. >>> >>> Don't know about the problem you're referring to by mixing includes with >>> project files. My approach is to keep public files -- that are pushed to >>> production -- in public/ and to keep development files that stay local in >>> app/ Modules go in app/modules/ Seems to work. >>> >>> Actually, the current version of Bootstrap is v5. The Modern Business >>> theme I chose for the Sample Website is just a template. It really has >>> nothing to do with Code Modules. I didn't update jQuery because I didn't >>> need it. >>> >>> You're right about Code Modules being difficult for a beginner. I >>> wouldn't recommend it for them. It's for intermediate/advanced BBEdit >>> users who hand code their static websites, especially those for clients. >>> Making changes in a website written using Code Modules is a lot less prone >>> to errors. >>> >>> Best, >>> >>> >>> On Wednesday, September 8, 2021 at 7:10:08 AM UTC-7 Greg Raven wrote: >>> >>>> Wow, what a project! I'd never thought of extending bbincludes anywhere >>>> near this far. >>>> >>>> I won't pretend that I have anything but a cursory understanding of >>>> what you've accomplished, but here are some trivial notes so far: >>>> >>>> - Wrap the "social media" meta information in bbignore tags so when >>>> you check site syntax you don't have multiple errors and warnings per >>>> page. >>>> - The copyright symbol in the footer is often better as an HTML >>>> entity. >>>> - I optimize my include files, both to cut down on transfer time >>>> and to make it easier to see where the live content is on the page. >>>> This >>>> gets around the indent issue. >>>> - I've had terrible experiences storing my includes files inside >>>> the same folder as my project files. You seem to have finessed a way >>>> around >>>> that, but I always have separate includes and build folders in each >>>> project, so I have to be really blitzed to "update" an include file. >>>> - There's a new version of Bootstrap 4. >>>> - There's a new version of jQuery 3. >>>> - This approach may be a bit daunting for beginners or those with >>>> simpler websites, but if it works as I hope it does it would get around >>>> the >>>> issue with not being able to edit BBEdit template pages and then having >>>> those changes ripple through your site, ALA Dreamweaver. >>>> >>>> >>>> On Tuesday, September 7, 2021 at 2:56:30 PM UTC-7 Christopher Werby >>>> wrote: >>>> >>>>> Announcing the release of Code Modules — an open source project >>>>> developed over years for creating and maintaining websites using BBEdit's >>>>> include and variable features. >>>>> >>>>> There’s documentation at https://codemodules.net/, a sample demo >>>>> website at https://sample.codemodules.net/ and a GitHub repo at >>>>> https://github.com/ChristopherWerby/code-modules with the source >>>>> files for the sample website together with the starter files. >>>>> >>>>> Just released today. If anything strikes you as wrong or needing >>>>> improvement, please let me know. I hope you find it useful. >>>>> >>>> -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/7740c291-e2b1-43fa-af82-83931177d79an%40googlegroups.com.
