All Downloads are FREE. Search and download functionalities are using the official Maven repository.

files.samplecontainer.examples.rewriter.rewriteroff.xml Maven / Gradle / Ivy

Go to download

Renders gadgets, provides the gadget metadata service, and serves all javascript required by the OpenSocial specification.

There is a newer version: 3.0.0-beta4
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
-->
<Module>
<ModulePrefs title="Rewriter demo"
             height="250">
<Optional feature="content-rewrite">
  <Param name="exclude-urls">.*</Param>
</Optional>
</ModulePrefs>
<Content type="html">
<![CDATA[
<style type="text/css"> @import url( http://localhost:8080/gadgets/files/samplecontainer/examples/rewriter/rewriter1.css ); </style>
<link rel="stylesheet" type="text/css" href="http://localhost:8080/gadgets/files/samplecontainer/examples/rewriter/rewriter2.css"/>
<p>Demostrates what happens when the rewriter is off</p>
<div>
  This is a URL in content that was not rewritten http://www.notrewritten.com
</div>
<div id="backgrdiv">
  This div has a background <br/> image from imported CSS
</div>
<div id="backgrdiv2">
  This div has a background <br/> image from linked CSS
</div>
<img id="rewriteimg" src="feather.png" alt="You can read this because without rewrite paths are not resolved relative to the gadget spec on render"/>
<p id="jstarget1">If you can read this there is a problem</p>
<p id="jstarget2">If you can read this there is a problem</p>
<script type="text/javascript" src="http://localhost:8080/gadgets/files/samplecontainer/examples/rewriter/rewriter1.js"></script>
<script type="text/javascript" src="http://localhost:8080/gadgets/files/samplecontainer/examples/rewriter/rewriter2.js"></script>
<p>Rendering this gadget will have loaded the resources directly.
Without the rewriter caching headers have not been set and there are
more requests because javascript files have not been concatenated</p>
]]>
</Content>
</Module>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy