• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
[QUOTE=H4Z3Y;33236795]use a templating language. PHP (yuck) can do it easily, otherwise [url=http://jekyllrb.com/]Jekyll[/url] is kickin' rad.[/QUOTE] Not exactly sure what a "templating language" is. Do you mean just do something like this? [code] <?php include("header.php"); ?> <!-- Content here --> <?php include("footer.php"); ?> [/code]
[QUOTE=MayorBee;33237235]Not exactly sure what a "templating language" is. Do you mean just do something like this? [code] <?php include("header.php"); ?> <!-- Content here --> <?php include("footer.php"); ?> [/code][/QUOTE]This is a good one, I've heard: [url]http://twig.sensiolabs.org/doc/intro.html#installation[/url]
[QUOTE=MayorBee;33237235]Not exactly sure what a "templating language" is. Do you mean just do something like this? [code] <?php include("header.php"); ?> <!-- Content here --> <?php include("footer.php"); ?> [/code][/QUOTE] that's a basic way of templating in PHP, yeah. PHP originated as a templating language, but then all this extra shit was added to it to make it more like a real programming language, which majorly fucked up the language.
[QUOTE=MayorBee;33237235]Not exactly sure what a "templating language" is. Do you mean just do something like this? [code] <?php include("header.php"); ?> <!-- Content here --> <?php include("footer.php"); ?> [/code][/QUOTE] What he's talking about is what's called a static site compiler/generator. He mentioned [url=http://jekyllrb.com/]Jekyll[/url] which is great. There are other equally fit options for various platforms, too, such as [url=http://www.phrozn.info/en/]Phrozn[/url] for PHP, or [url=http://ringce.com/hyde]Hyde[/url] for Python. Shop around for your needs, you're sure to find something that fits them. [editline]11th November 2011[/editline] [QUOTE=H4Z3Y;33237321]that's a basic way of templating in PHP, yeah. PHP originated as a templating language, but then all this extra shit was added to it to make it more like a real programming language, which majorly fucked up the language.[/QUOTE] Heh.
[quote=wikipedia]PHP is a general-purpose server-side scripting language originally designed for web development to produce dynamic web pages.[/quote] okay I'm wrong
[QUOTE=H4Z3Y;33237472]okay I'm wrong[/QUOTE] You don't need to lecture me on the origins of PHP, H4Z3Y, I know more about PHP history then my own history (I've gotta call my mom and ask her where the hell was I born). I just made a passing comment about your two consecutive stabs at the language, which I found funny. The day I get mad at someone saying mean things about one of the languages I like to write it in is the day I throw my laptop out the window, sell my house and go live in the woods with a family of bears.
-snip, sorry wrong thread-
are the facebook bookmark you stalking or is that your profile.
[QUOTE=StinkyJoe;33237701]You don't need to lecture me on the origins of PHP, H4Z3Y, I know more about PHP history then my own history (I've gotta call my mom and ask her where the hell was I born). I just made a passing comment about your two consecutive stabs at the language, which I found funny. The day I get mad at someone saying mean things about one of the languages I like to write it in is the day I throw my laptop out the window, sell my house and go live in the woods with a family of bears.[/QUOTE] hehe, I was just quoting wikipedia because I genuinely thought it was meant to be a templating language, not a 'dynamic web page language', which I suppose is slightly different. The quote was for my benefit, to show that I didn't do a 180 without reason. (this doesn't change my opinions on php :v:)
[QUOTE=H4Z3Y;33237842]hehe, I was just quoting wikipedia because I genuinely thought it was meant to be a templating language, not a 'dynamic web page language', which I suppose is slightly different. The quote was for my benefit, to show that I didn't do a 180 without reason. (this doesn't change my opinions on php :v:)[/QUOTE] I misunderstood it as sarcasm, my mistake. You weren't wrong, the nomenclature is always fuzzy with these things, but in its infancy PHP was indeed little more then a template language, and a pretty horrible one at that (truth be told, Perl was still all the rage at the time, just to put it into context). Use whatever language you're comfortable and productive with - at the end of the day, it doesn't matter if you're using python, php, ruby or fortran, if you're not writing code that solves problems and fulfills goals then all you're doing is writing silly-looking text.
Can someone help with some php I need for my gamemode? I just need it to read a Sql table to show stats.
[QUOTE=triscuit6264;33246561]Can someone help with some php I need for my gamemode? I just need it to read a Sql table to show stats.[/QUOTE] Added you on steam friends, I can help you out.
Google chrome compatibility. SHIT! ONLY Firefox LIkes it D: Apparently this page doesn't work on Google chrome? [url]http://skeestorm.com/templates/page_template.html[/url] It should look like this: [img]http://gyazo.com/983171ac92cf777281b3eb72387bf48c.png[/img]
[QUOTE=blackfire88;33251741]Google chrome compatibility. SHIT! ONLY Firefox LIkes it D: Apparently this page doesn't work on Google chrome? [url]http://skeestorm.com/templates/page_template.html[/url] It should look like this: [img]http://gyazo.com/983171ac92cf777281b3eb72387bf48c.png[/img][/QUOTE] Yup, totally doesn't work on Chrome [img]http://dl.dropbox.com/u/5483751/Photos/2011-11-13_0157.png[/img]
was that in chrome? if so, :D i tried in IE and that didnt work. [editline]13th November 2011[/editline] could just be me? can anyone verify if it's just my versions?
[QUOTE=blackfire88;33251828]was that in chrome? if so, :D [b]i tried in IE and that didnt work.[/b] [editline]13th November 2011[/editline] could just be me? can anyone verify if it's just my versions?[/QUOTE]i'm sorry, did you just compare chrome's rendering to ie's?
[QUOTE=TehWhale;33251898]i'm sorry, did you just compare chrome's to ie's?[/QUOTE] That's what I thought :wtc:
also gotta love the dreamweaver use and tables
Nonononono! I didn't, i'm just saying that IE didnt work either, as in, it didnt load at all. My friend who has chrome saw this rendered, and in IE for me the page didn't even load. [img]http://i39.tinypic.com/fuccib.png[/img] [editline]13th November 2011[/editline] so could someone please verify if it is just our versions or it is all browsers?
[img]http://dl.dropbox.com/u/1439918/Pics/2011-11-12_2013.png[/img] It doesn't look like a frowny face to me :(
[QUOTE=TehWhale;33251938]also gotta love the dreamweaver use and tables[/QUOTE] It might just be because I don't know any javascript, but I really see no reason to load the images like that. Just seems so much extra work.
[QUOTE=TehWhale;33252016][img]http://dl.dropbox.com/u/1439918/Pics/2011-11-12_2013.png[/img] It doesn't look like a frowny face to me :([/QUOTE]\ What DOES it look like(screenshot for me please)? Bloody hell i better get a better provider for hotlinking!
[QUOTE=blackfire88;33252034]\ What DOES it look like(screenshot for me please)? Bloody hell i better get a better provider for hotlinking![/QUOTE] Give me your email and ill invite you to dropbox. [editline]13th November 2011[/editline] And it looks like this [img]http://dl.dropbox.com/u/5483751/Photos/2011-11-13_0217.png[/img]
hahaha, i dont like linking dropboxes, because of viruses [editline]13th November 2011[/editline] -ninja'd-
[QUOTE=blackfire88;33252062]hahaha, i dont like linking dropboxes, because of viruses. [editline]13th November 2011[/editline] could you try use an image hoster?[/QUOTE]what
[QUOTE=blackfire88;33252062]hahaha, i dont like linking dropboxes, because of viruses. [editline]13th November 2011[/editline] could you try use an image hoster?[/QUOTE] What are you talking about?
okay awesome, so it DOES work hmm..... could someone try internet explorer? once you do that then i know it's only me.
[QUOTE=blackfire88;33252078]okay awesome, so it DOES work hmm..... could someone try internet explorer? once you do that then i know it's only me.[/QUOTE] Don't have IE installed. [editline]13th November 2011[/editline] Welp looks like I do, this is the template on IE for me [img]http://dl.dropbox.com/u/5483751/Photos/2011-11-13_0224.png[/img]
[QUOTE=blackfire88;33251828]was that in chrome? if so, :D i tried in IE and that didnt work. [editline]13th November 2011[/editline] could just be me? can anyone verify if it's just my versions?[/QUOTE] Chrome works on latest [t]http://i.imgur.com/NVnb5.png[/t] [editline]13th November 2011[/editline] Why the tables. [editline]13th November 2011[/editline] [t]http://i.imgur.com/RkFbr.png[/t] What did you do.
The part where there's scripts and styles outside of the head probably has something to do with it.
Sorry, you need to Log In to post a reply to this thread.