Skip to content

the-sashko/peow-cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peow CMS

Yet another generator static web-sites

How to install

Run ./first-run.sh

For Ubuntu-users: ./first-run.sh --ubuntu

How to generate site

Run ./build.sh

Template structure

comming soon...

Template engine sintax (with equivalent code in python)

  • {%FOO%}

     print(foo)
  • {%FOO|BAR%}

    print(foo['bar'])
  • {%[FOO+1]%}

     print(foo+1)
  • {?%FOO%>%BAR%?}...{?ELSE?}...{?END?}

     if(foo>bar):
         ...
     else:
         ...
  • {@FOO:BAR@}...{%BAR%}...{@END@}

    for bar in foo:
        ...
        print(bar)
        ...
  • {@FOO:BAR@}...{%BAR%}...{@@FOO2:BAR2@}...{%BAR2%}...{@END@@}...{@END@}

     for bar in foo:
         ...
         print(bar)
         ...
             for bar2 in foo2:
                 ...
                 print(bar2)
                 ...
  • {!FOO!}

    print(open('foo.html').read())
  • {#Lorem Ipsum#}

    #Lorem Ipsum

About

Yet another generator static web-sites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published