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

com.googlecode.jatl.package-info Maven / Gradle / Ivy

/**
 * Copyright (C) 2010 the original author or authors.
 *
 * Licensed 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.
 */

/**
 * For quickstart documentation: http://jatl.googlecode.com/ and {@link com.googlecode.jatl.MarkupBuilder}.
 * 

* Example

*

	StringWriter sw = new StringWriter();
	new Html(sw) {{
		div().title("first");
			span().id("hello").end();
			div().title("second");
				text("Second");
				start("custom1").attr("data", "value").end();
				start("custom2").text("hello").end();
			end();
		end();
	}};
	String result = sw.getBuffer().toString();
	String expected = "\n" + 
			"<div title=\"first\">\n" + 
			"	<span id=\"hello\"/>\n" + 
			"	<div title=\"second\">Second\n" + 
			"		<custom1 data=\"value\"/>\n" + 
			"		<custom2>hello\n" + 
			"		</custom2>\n" + 
			"	</div>\n" + 
			"</div>";
	assertEquals(expected, result);
 * 
*

* See {@link com.googlecode.jatl.MarkupBuilder} for creating your own markup builders. */ package com.googlecode.jatl;





© 2015 - 2025 Weber Informatics LLC | Privacy Policy