Clay 1.0.16

5.0/10 (3 أصوات )

الترجمة الالية للوصف

  • مرات التنزيل: 172
  • متطلبات التشغيل:
  • الحجم:
  • الترخيص:
  • الاصدار : Clay
  • اضيف في: 0000-00-00 00:00:00
  • اخر تحديث: 19/06/2012
  • الموقع علي الانترنت:

استخدام البرامج التي تم تنزيلها من موقعنا يجب أن يكون وفقاً للقوانين في بلدك.لا نوصي باستخدام برامج تنتهك القوانين في بلدك.،اذا كنت تري ان هذا المحتوي لا يتوافق مع حقوق الملكية الفكرية برجاء ابلاغنا بالضغط هنا


Clay is a tool that allows you to forget about making changes to dozens of HTML files just because you need to add a link in the footer.You can also use it to prototype your AJAX-driven application or the responses of sending forms, because it acts like a real server.Quickstart clay new myappnameWill generate a new app container with the following structuremyappname â”œâ”€â”€ static/ â”œâ”€â”€ views/ â””── run.pyJust run the server with: python run.pyand your site'll be available at you put under views will be render as a page. For instance, views/page.html will be visible athttp:// views/foo/bar.json athttp://, put your static files — like images, stylesheets and scripts – under the folder static and they'll be available athttp:// generate a static version of your site, stop the server (with Control + C) and run:python makeand all the templates will be processed and the result stored inside the build folder.Enjoy!How to installJust runsudo pip install clayand you're ready to go.TemplatesThe real power of Clay comes by using the Jinja2 template syntax.Inside the views folder you'll find a file called base.html. This is a page skeleton shared among the rest of HTML templates. You put in there anything you want to be repeated in every page, like the doctype declaration or maybe navigation links and a footer. You change something there and the rest of the pages will be automatically updated. Much more easy than manually search and replace a bunch of files!The rest of the files, like index.html, are composed of blocks, like{% block title %}Welcome to Clay{% endblock %}Any content you put inside those blocks will be used to fill the same-named blocks in base.html. In this case to fill the tag.You can create new blocks for your templates. You can even create new base files, just change in your templates the base that they will use, by updating the line that says:{% extends "base.html" %}You can use more than just HTML: JSON, csv, plain text, etc. Any text-based format will be ok.Jinja2 templates are much more than just template inheritance. For more advaced features check the official documentation.Product's homepage Requirements:

· Python only provide legal software, please help us keeping pur site legal, if you think this page is violating copyrights please let us know by clicking here Here

التعليقات علي Clay 1.0.16
اضافة تعليق

تعليقات الفيسبوك

تعليقات الموقع