certik / hpfem.org Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Intro ----- These are the sources of the http://hpfem.org/ web. We welcome any suggestions for our pages, feel free to send us a patch. Follow the instructions below to edit the pages. How to edit the pages --------------------- Please edit only the templates in the directory "templates", and then just run "./generate" from the root directory and it will take the templates and generate the .html files. The "./generate" script depends on the jinja2 library (on Debian/Ubuntu, install the "python-jinja2" package). For example, if you look into templates/hermes.html: {% extends "layout.html" %} {% block title %} hp-FEM: Hermes project {% endblock %} {% block content %} <h1 class="heading">Hermes project</h1> <p><strong>Hermes</strong> is a free C++/Python library of adaptive hp-FEM algorithms. The following links will lead you to the 1D, 2D and 3D versions of the library: <ul> <li><a href="#">Hermes1D</a> (not available yet)</li> <li><a href="http://hpfem.math.unr.edu/projects/hermes2d">Hermes2D</a></li> <li><a href="http://hpfem.math.unr.edu/bugs/projects/show/hermes3d">Hermes3D</a></li> </ul> {% endblock %} Then you can see, that it takes layout.html (which is the whole html that you can download from freetemplates.org) a and it only changes the title and the content. So the contens is now only edited at one place in templates/layout.html, then you run "./generate" and it will updated all pages. When you want to add/delete a new page, then just create/delete a template and add/delete it's name from ./generate: #! /usr/bin/env python from jinja2 import Environment, FileSystemLoader env = Environment(loader=FileSystemLoader('templates')) templates = ["hermes.html", "contact.html", "femcodes.html", "index.html"] for template in templates: t = env.get_template(template) open(template, "w").write(t.render()) Add/delete it from the list "templates".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.