Welcome Guest, Not a member yet? Register   Sign In
[1.5.1 RELEASED] COMPER Template Parser
#21

[eluser]Tominator[/eluser]
Hello all!

Today I'm finishing version 1.3.3. I'm finding beta-testers - so contact me, if you would like to test it!

What's new?
1. Error messages
2. Extesionable (yes adding your language and config values even simpler!) - you can extend it with everything ...

When released?
I hope new version will be released in two or three weeks ... I have to write docs.
#22

[eluser]Tominator[/eluser]
Hi guys!

Sorry for spamming, but I've promised that new version will release in June ... but whole technique has crashed, so work stopped. As I say in facebook, I'm sorry and I've got one good and one bad message for you:

Good is that I will relase new parser, version 1.5. You'll find:
* Error messages, and logs
* NEW debug function with unit testing
* NEW conditions - better syntax and much faster (up to 66%)
* NEW function append - you can easily pass your config, language and custom arrays and access them more elegant
* BUGs fixed
* Fixed roads
* Compatible with CI 2.0
* Better docs

Bad one:
* No backward compatibility caused of new syntax of Conditions

Term:
1.1.2011
#23

[eluser]nggakbiasa[/eluser]
ohh,,, great. can't wait the release date ..
#24

[eluser]Vheissu[/eluser]
I am looking forward to trying your parser. I will definitely take a look once the new version is released.
#25

[eluser]Tominator[/eluser]
Hey guys! Xmas present for you: Parser has been today released! Enjoy!
#26

[eluser]xjeddan143[/eluser]
Nice one guys..

I learned it..I always thinking about the parse now I have an idea.

Thank you
#27

[eluser]Tominator[/eluser]
Version 1.5.1 relased!

Fixed:
* Bug in Append function
* Bug in Debug function

Now it has no error Big Grin

Looking forward to your feedback!
#28

[eluser]victorche[/eluser]
Looks really simple, clean
I've read the docs and it is powerful. Anyway, I need to know am I able to have one main tpl file, like page.tpl and then I want to include not only the header and footer, but to change the main content also. Something like (from the docs):
Code:
<body>
<-- INCLUDE overall_header --&gt;

<h3>Hi there!</h3>        // Instead of those 2 lines, I want to be able to add
<p>'Cause I'm fine!</p>   // different .tpl files, so here I just need {content}

<-- INCLUDE overall_footer --&gt;
#29

[eluser]Tominator[/eluser]
I'm not sure, if I understand you clearly,
but you can use include anywhere (inside including files too).

Also pseudo-varibles, cycles and conditionals are passed to included file.

If I didn't answer you, try to write example, what you want to do, thanks Smile

Tom.
#30

[eluser]victorche[/eluser]
I want to have one major template file, let's call it page.tpl:
Code:
&lt;html&gt;
&lt;head&gt;
// All the head stuff goes here ...
&lt;/head&gt;
&lt;body&gt;
<-- INCLUDE overall_header --&gt;

&lt;?php echo $content; ?&gt;        // I want to use my main tpl everywhere and just to change the middle content of it ...

<-- INCLUDE overall_footer --&gt;
&lt;/body&gt;
&lt;/html&gt;
So, this way when I have a Login controller for example, I want to load in the middle login.tpl (where the $content is). With <-- INCLUDE I can include some static .tpl file but i want it to be different, depending on the controller...
Login controller - loads login.tpl as a middle block
FAQ controller - loads faq.tpl as a middle block




Theme © iAndrew 2016 - Forum software by © MyBB