Giter VIP home page Giter VIP logo

stijnsanders / xxm Goto Github PK

View Code? Open in Web Editor NEW
60.0 12.0 20.0 36.02 MB

Combine Delphi and HTML code in the same source files to compile a website into a library that runs on IIS, Apache httpd, CGI, SCGI, on http.sys or raw no-frills HTTP...

Home Page: http://yoy.be/xxm/

License: MIT License

Pascal 92.69% HTML 7.00% CSS 0.25% Batchfile 0.06%
web-development delphi http-server dynamic-webpages

xxm's Introduction

xxm

xxm enables you to create dynamic websites in Delphi, combining both Delphi and HTML in the source files. The project is compiled into a module, ready for use by a pluggable protocol handler in Internet Explorer, an ISAPI Extension, an Apache module, with HTTPAPI, with CGI or SCGI, or a stand-alone HTTP server. (Perhaps more in the future or by other parties.)

How does it work?

An xxm project contains source-files that hold both HTML and Object Pascal source code. These are converted (e.g. by the auto-compile on refresh feature) into a plain Delphi project, which is compiled into a xxm Library (with the `.xxl` file extension). This xxm Library can be loaded by one of the xxm handlers:
  • an ISAPI extension that plugs into IIS
  • an Apache 2 module
  • a process that uses HTTPAPI (http.sys)
  • a stand-alone basic HTTP server
  • an old-fashioned CGI application
  • an SCGI server process
  • ... (perhaps more later)

Most handlers are available in these forms:

  • no extra's: the handler loads one or more xxl's and keeps them loaded until shutdown
  • auto-compile: the handler checks if source-files are modified, and parses and compiles the project (great for development!)
  • auto-update: the handler checks for a name.xxu file, if present requests are stalled until the xxl can get overwritten by the xxu file (great for live environments!)

To get started, download the binaries or follow the get started screenshot tutorial.

bitcoin accepted

Gitter

xxm's People

Contributors

gitter-badger avatar stijnsanders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xxm's Issues

"03 Data ADO" demo EAccessViolation

After issue #1 which I've fixed for myself with
v:=EmptyParam;
cmd.Execute(v,v,0);
appears this problem:

default_xxm
An error occurred while rendering this page.
xxm://demo/ EAccessViolation
Access violation at address 04693E29 in module 'XXMLOC~2.DLL'. Read of address F28B562B
QueryString:
Post data: none
xxm Local Handler (AutoBuild) 1.2.2.369

XXMLOC~2.DLL is definetely xxmLocalDev.dll.
I don't know how to debug this and where in the code it happens.

Lazarus?

Can this work with Lazarus also?

"03 Data ADO" demo error

Here it is:

default_xxm

An error occurred while rendering this page.
xxm://demo/ EAccessViolation
Access violation at address 03C13E29 in module 'xxmLocalDev.dll'. Read of address F28B562B
QueryString:
Post data: none

This is after I fixed a pair of compilation errors. The first was covered in a previous issue:

#1

The 2nd compilation error was an "undeclared identifier: s" in xxmSession.pas - the TXxmSession.Create constructor. An easy fix by adding a "var s:AnsiString;".

I have both D7 & XE8 on this machine; XE8 is doing the compiling.

"03 Data ADO" demo compile error

Here it is:
Embarcadero Delphi for Win32 compiler version 30.0
Copyright (c) 1983,2015 Embarcadero Technologies, Inc.
C:\Program Files\IIS Express\WebSite1\xxm\03 Data ADO\xxmData.pas(295) Error: E2033 Types of actual and formal var parameters must be identical
C:\Program Files\IIS Express\WebSite1\xxm\03 Data ADO\xxmData.pas(522) Error: E2033 Types of actual and formal var parameters must be identical
C:\Program Files\IIS Express\WebSite1\xxm\03 Data ADO\xxmSession.pas(46) Fatal: F2063 Could not compile used unit 'xxmData.pas'

For another ed

Hi Stijn
Just saw your blog comment

Nice repo; maybe it's possible to make similar xxm support for CudaText [plugin]?

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.