Skip to content
Discussion options

You must be logged in to vote

Just use lazy-image template, it will filter out PDFs.

The server side rendering code is very simple, just core/modules/server/routes/get-index.js

exports.handler = function(request,response,state) {
	var text = state.wiki.renderTiddler(state.server.get("root-render-type"),state.server.get("root-tiddler")),
		responseHeaders = {
		"Content-Type": state.server.get("root-serve-type")
	};
	state.sendResponse(200,responseHeaders,text);
};

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@linonetwo
Comment options

@linonetwo
Comment options

@linonetwo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by linonetwo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants