[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
How can I add a few lines of html to all of my html files, without
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 12
Thread images: 1
How can I add a few lines of html to all of my html files, without copy pasting? Is it possible to include it in the stylesheet?
>>
If you are seriously this retarded, please do not post on /g/.
>>
retard here, im interested too
bump
>>
for f in *.html; do echo "$lines" >>"$f"; done
>>
Just use grunt. Who even typed html manually anymore?
>>
>>52051575
Look into using some kind of template system. One easy way is to use php, u can have 1 file for header, 1 file for footer, etc and then plug those files into ur content pages. Look into php includes.
>>
You can use the "content" property: https://developer.mozilla.org/en-US/docs/Web/CSS/content

However you shouldn't.
>>
>>52051592
Daily reminder /g/ is now home to tech illiterate mac fags and consumerists.
>>
>>52051789
me LMAO
>>
fuck off and google it


>>>/asr/
>>
>>52052543
Oh the endless graphics card threads and constant phone wars didn't give that away huh
>>
>>52051789
>grunt
>soon to be 2016

Webpack if you got a big webapp or simple fucking script in your package.json can do most of the job

At the very least use gulp. Often a hundred times more logical and effictient than grunt
Thread replies: 12
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.