Timeline for Accessing common files across different domains
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 26, 2022 at 17:01 | comment | added | Robbie | Doing it in HTML is impossible. Something like <img src="CoffeeBeansForSale.com/../common_site_files/images/order_icon.png"/> doesn't work in HTML. | |
Aug 26, 2022 at 15:00 | history | tweeted | twitter.com/StackWebmasters/status/1563179464837955590 | ||
Aug 26, 2022 at 14:22 | answer | added | Patrick Mevzek | timeline score: 1 | |
Aug 26, 2022 at 12:53 | comment | added | Mike Ciffone | Node.js + Handlebars would be my choice | |
Aug 26, 2022 at 12:17 | history | edited | Stephen Ostermiller♦ | CC BY-SA 4.0 |
Use example domain, code format example URL
|
Aug 26, 2022 at 9:43 | comment | added | davidgo | I don't think this is really appropriate here. I agree with Steve that PHP is likely the best way to go . I'd add that if you separate your CSS from your HTML, you can update styles by calling a common CSS stylesheet, even if you need to add the common one and then a second one with overrides for it. You may be able to do some templating with HTML add-ons, but once you have done that, you may as well use PHP. You could also write placeholder variables and script substitututions - but again, PHP is easier... | |
Aug 26, 2022 at 7:13 | comment | added | Steve | So why not do it in PHP? | |
Aug 26, 2022 at 2:08 | history | asked | Robbie | CC BY-SA 4.0 |