Skip to content

Commit

Permalink
Fixed compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
acehreli committed Feb 16, 2011
1 parent 47a46a5 commit c7a1d52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ SOURCES= \
library/cookie.d \
library/fixedString.d \
library/envVar.d \
system/helper/htmlHelper.d \

COMPILER = dmd

SWITCHES = -unittest -w

test:
test: ${SOURCES} Makefile
${COMPILER} -of$@ ${SOURCES} ${SWITCHES}
./$@
16 changes: 5 additions & 11 deletions system/helper/htmlHelper.d
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
module helper;
import std.stdio;
import std.conv;
class HtmlHelper
{

char[] content;
char[] head;

this(){

this.content="";
this.head="";

}

void htmlTags(){

content~="<html>\n"~content~"</html\n";
Expand All @@ -25,9 +19,9 @@ class HtmlHelper

}

void createTitle(dchar[] title){
void createTitle(const dchar[] title){

head~="<title>"~title~"</title>";
head~="<title>"~to!string(title)~"</title>";

}

Expand Down Expand Up @@ -78,7 +72,7 @@ class HtmlHelper

}

void main()
unittest
{
HtmlHelper help=new HtmlHelper();
help.downLine();
Expand All @@ -87,7 +81,7 @@ void main()
help.bolder("Merhaba");
help.bodyPiece();
help.createTitle("Merhaba");
help.head();
// help.head();
help.htmlTags();
}

Expand Down

0 comments on commit c7a1d52

Please sign in to comment.