Giter VIP home page Giter VIP logo

edinburgh.pm's Introduction

edinburgh.pm

The primary repo for edinburgh.pm

Because pm.org doesn't allow Apache SSIs or any dynamic content (and because I don't want to take on the work involved in hosting the site elsewhere) we store files as Text::Xslate templates (written in TTerse)

To build the site, run:

script/build_static

That will generate a html file for each *.html.tx template that exists.

Alternatively, you can run a local development server which will automatically generate the templated HTML output on the fly (so you can flip between editing a template file and reloading the page in your browser, without running the script manually). Run this command:

plackup scripts/dev_server

and visit the URL it suggests. The [plackup command][https://metacpan.org/module/plackup] also accepts various options to configure where it listens, and so on.

You can install the Perl modules needed by script/build_static and script/dev_server by running

cpanm --installdeps .

If you don't have cpanminus installed already, you can find it [on CPAN][https://metacpan.org/module/App::cpanminus].

The .html files are not tracked in git -- the .html.tx files are, and those are used to generate the site via script/build_static

Thus, if you want to make edits:

  • edit the .html.tx file of the page you want to change
  • re-run script/build_static

edinburgh.pm's People

Contributors

arc avatar minty avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.