Right, I like (aiki()aiki) or (aiki())

On Sat, Feb 4, 2012 at 3:09 AM, Jakub Jankiewicz <[email protected]> wrote:
> But there is a problem with this syntax. how you nested it. Are <aiki
> will only act like <?php  in php so you end up with thigs like this
>
> How sql should look like
> How you embed html inside <aiki should look like what If I want to put
> 3 level of if
>
> <aiki
>   if (foo == bar) {
>     <p>foo bar</p>
>     if (bar == baz) {            // how parser will know that this "if"
>        <p>baz quux</p>           // is not text or javascript
>     }
>   }
> aiki>
>
> maybe this
>
> <aiki
>   if (foo == bar) {
>     <p>foo bar</p>
>     <aiki if (bar == baz) {
>         <p>baz quux</p>
>     }
>     aiki>
>   }
> aiki>
>
> I don't like it if you what to create 4 levels you end up with this:
>
> <aiki
>   if (foo == "bar") {
>      <aiki for(i=0; i<10; ++i) {
>          <aiki
>              sql( SELECT * FROM aiki_users ) {
>                  <aiki if ( ((usergroup)) == 1 ) {
>                       <p>((username)) is admin</p>
>                  } else {
>                       <p>((username)) is normal user</p>
>                  }
>                  aiki>
>
>              }
>          aiki>
>      }
>      aiki>
>   }
> aiki>
>
> or maybe you what this:
>
> <aiki if (foo == "bar") { aiki>
>      <aiki for(i=0; i<10; ++i) { aiki>
>          <aiki sql( SELECT * FROM aiki_users ) aiki>
>               <aiki if ( ((usergroup)) == 1 ) { aiki>
>                       <p>((username)) is admin</p>
>               <aiki } else { aiki>
>                       <p>((username)) is normal user</p>
>               <aiki } aiki>
>
>          <aiki } aiki>
>      <aiki } aiki>
> <aiki } aiki>
>
> which look like embeded php
> <?php if ($foo == "bar") { ?>
>   <p> foo is bar </p>
> <?php } ?>
>
> On Fri, 3 Feb 2012 17:47:23 +0200
> Bassel Safadi <[email protected]> wrote:
>
>> I think using markup like in (script( or (if( is also non standard and
>> still ugly, the old aiki markup used to
>> look something like:
>> <php
>> if ....
>> php>
>>
>> ok and we removed the <php tag since Jon and others thought it's not
>> php. ok we can replace with something like script (although the
>> script is used in html) but lets say we have something like <aiki
>> which is not implemented now fully, I mean if the markup parser was
>> only triggered when <aiki is used that will save us a lot of
>> processing power. so instead of having stuff that look like <aiki
>> aiki> and other stuff that look like (script( or (if( they all should
>> aiki> look like:
>>
>> <aiki
>> if (something = something){
>> do something
>> }
>> aiki>
>>
>> --
>> Bassel Safadi | http://bassel.ws
>> Skype: i.know.sy | Global: +1-323-545-3855
>>
>>
>> On Fri, Feb 3, 2012 at 12:14 PM, Jakub Jankiewicz <[email protected]>
>> wrote:
>>
>> > I wanted in Aiki markup to have place for functions like
>> > (replace( so we can simple add more of them like (p( and (br( and
>> > also it would be create if users will be able to add new once.
>> > Maybe with this parser extensions.
>> >
>> > Maybe instead of $aiki->Class->some_function we will have
>> > (some_function(
>> >
>> > IMO the (script( should stay because users maybe will need to call
>> > function that are in Aiki Core, and if this will be removed they
>> > will need to write (api_function( wrapper only to call built-in
>> > function.
>> >
>> > but maybe instead of (script( $aiki->membership->logOut(); )script)
>> > we will have (membership::logOut( ))
>> > this is too long (membership::logOut( )membership::logOut)
>> >
>> >
>> > and in other places we will have it too
>> >
>> > (if( membership::permission == 'SystemGOD' {
>> >    <p>Master I'm here to serve you</p>
>> > })if)
>> >
>> > we will get rid with this php legacy with this.
>> >
>> > maybe instead of
>> >
>> >        (if(  foo == bar {
>> >           <p>true</p>
>> >        })if)
>> > this
>> >        (if( foo == bar {
>> >           <p>true</p>
>> >        }))
>> >
>> > in this case it will look the same as (function_call( ))
>> >
>> > What do you think?
>> >
>> > On Fri, 03 Feb 2012 03:29:51 -0000
>> > Christopher Adams <[email protected]> wrote:
>> >
>> > > Blueprint changed by Christopher Adams:
>> > >
>> > > Whiteboard changed:
>> > >   This is list that also might be removed
>> > >
>> > >   [br[html or db field]br] - who will use this
>> > >   [p[html or db field]p] - the same
>> > >
>> > >   (#(related:some||keywords||here)#) - is this even working, the
>> > > same tags
>> > >   (#(tags: some, tags, go, here)#) - Aiki don't have tags so how
>> > > this is gonna work
>> > >
>> > >   {+{SOME_STORED_IMAGE_NAME|alternative text|float|vspace
>> > > attribute|hspace attribute|path prefix|description}+} not even
>> > > used by OCAL / and is just to complicated why don't use simple
>> > > <a><img..../></a> Aiki should help in developing html not replace
>> > > it. ###
>> > > + The [br[ and [p[ functions are very useful. Anyone working with
>> > > a
>> > > + WordPress or other blogging database will need these. Can you
>> > > turn them
>> > > + into a function or filter to be consistent with your Aiki markup
>> > > + changes? Please keep these functions available. ~~~~christopher
>> > > +
>> > >   HOWTO deprecate these ? @rejon
>> > >
>> > >   Can you update this blueprint with more reasoning why possible
>> > > to remove? @rejon
>> > >
>> >
>> > --
>> > Jakub Jankiewicz
>> > twitter: @jcubic
>> > www: http://jcubic.pl
>> >
>> > _______________________________________________
>> > Mailing list: https://launchpad.net/~aikiframework-devel
>> > Post to     : [email protected]
>> > Unsubscribe : https://launchpad.net/~aikiframework-devel
>> > More help   : https://help.launchpad.net/ListHelp
>> >
>
> --
> Jakub Jankiewicz
> twitter: @jcubic
> www: http://jcubic.pl
>
> _______________________________________________
> Mailing list: https://launchpad.net/~aikiframework-devel
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~aikiframework-devel
> More help   : https://help.launchpad.net/ListHelp



-- 
Jon Phillips 王✳爻气 http://fabricatorz.com ✳ skype: kidproto ✳ irc: rejon
+1.415.830.3884 (global) ✳ +86-187-1003-9974 (beijing)

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to