├── .gitmodules ├── apps ├── ROOT-old │ ├── tmp │ │ └── foo.txt │ ├── favicon.ico │ ├── images │ │ ├── bg.png │ │ ├── close.png │ │ ├── load.png │ │ ├── play.gif │ │ ├── shell.png │ │ ├── wso2.png │ │ ├── debugger.png │ │ ├── icon-try.png │ │ ├── jagglogo.png │ │ ├── jaglogo.png │ │ ├── twitter.png │ │ ├── commandline.png │ │ ├── docs_thumb.jpg │ │ ├── fresh_thumb.jpg │ │ ├── icon-apache.png │ │ ├── icon-docs.png │ │ ├── icon-editor.png │ │ ├── icon-howto.png │ │ ├── mail-list.png │ │ ├── shout_thumb.jpg │ │ ├── task_thumb.jpg │ │ ├── topbar_logo.png │ │ ├── bugtrack_ico.png │ │ ├── bullet-point.png │ │ ├── debug_config1.png │ │ ├── debug_config2.png │ │ ├── downloadgreen.png │ │ ├── editor_config.png │ │ ├── feather-small.gif │ │ ├── icon-debugger.png │ │ ├── icon-samples.png │ │ ├── j-mgt-console.png │ │ ├── label-forkme.png │ │ ├── uploadjaggery.png │ │ ├── icon-changelog.png │ │ ├── source_code_ico.png │ │ ├── coffee_shop_sample.jpg │ │ └── ide_doc_images │ │ │ ├── typehtml.png │ │ │ ├── createfile.png │ │ │ ├── methodparam.png │ │ │ ├── createobject.png │ │ │ ├── createnewproject.png │ │ │ ├── aftercreatingfile.png │ │ │ ├── javascriptoutoftags.png │ │ │ └── getallthemethodsforrequest.png │ ├── jaggery.conf │ ├── apidocs │ │ └── resources │ │ │ ├── data.jag │ │ │ └── home.jag │ ├── css │ │ ├── simple-hint.css │ │ └── tryit.css │ ├── includes │ │ ├── tryit_but.jag │ │ ├── footer.jag │ │ ├── footerfunc.jag │ │ └── editarea_popup.jag │ ├── js │ │ ├── util.js │ │ └── tryit.jag │ └── lib │ │ └── bootstrap.less ├── ROOT │ ├── themes │ │ └── ROOT │ │ │ ├── partials │ │ │ ├── body.hbs │ │ │ ├── title.hbs │ │ │ ├── addPost.hbs │ │ │ ├── header.hbs │ │ │ ├── nav.hbs │ │ │ ├── sidebar-tools.hbs │ │ │ ├── sidebar-tryit.hbs │ │ │ ├── sidebar-about.hbs │ │ │ ├── footer2.hbs │ │ │ ├── footer.hbs │ │ │ ├── sidebar-samples.hbs │ │ │ ├── sidebar-documentation.hbs │ │ │ └── sidebar-quickstart.hbs │ │ │ ├── js │ │ │ ├── quickstart.js │ │ │ ├── zoomico.png │ │ │ ├── documentation.js │ │ │ ├── i18n │ │ │ │ └── elrte.en.js │ │ │ ├── util.js │ │ │ ├── caramel-client.js │ │ │ ├── tryit.jag │ │ │ ├── core.js │ │ │ ├── theme.js │ │ │ └── tryit.js │ │ │ ├── css │ │ │ ├── tryitframe.css │ │ │ ├── smoothness │ │ │ │ └── images │ │ │ │ │ ├── ui-icons_222222_256x240.png │ │ │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ │ │ ├── ui-icons_454545_256x240.png │ │ │ │ │ ├── ui-icons_888888_256x240.png │ │ │ │ │ ├── ui-icons_cd0a0a_256x240.png │ │ │ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ │ │ │ │ ├── ui-bg_flat_75_ffffff_40x100.png │ │ │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ │ │ └── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ │ ├── jslider.round.plastic.css │ │ │ ├── simple-hint.css │ │ │ └── jquery.rating.css │ │ │ ├── img │ │ │ ├── editor.png │ │ │ ├── load.png │ │ │ ├── logo.png │ │ │ ├── shell.png │ │ │ ├── debugger.png │ │ │ ├── geometry.png │ │ │ ├── typehtml.png │ │ │ ├── commandline.png │ │ │ ├── createfile.png │ │ │ ├── methodparam.png │ │ │ ├── tryit-run.png │ │ │ ├── createobject.png │ │ │ ├── debug_config1.png │ │ │ ├── debug_config2.png │ │ │ ├── editor_config.png │ │ │ ├── elrte-toolbar.png │ │ │ ├── j-mgt-console.png │ │ │ ├── jaggery-dark.png │ │ │ ├── samples-shout.png │ │ │ ├── uploadjaggery.png │ │ │ ├── createnewproject.png │ │ │ ├── landing-banner.png │ │ │ ├── landing-editor.png │ │ │ ├── samples-coffee.png │ │ │ ├── samples-jaggery.png │ │ │ ├── tryit-browser-1.png │ │ │ ├── tryit-browser-2.png │ │ │ ├── tryit-browser-3.png │ │ │ ├── tryit-browser-4.png │ │ │ ├── tryit-browser-5.png │ │ │ ├── tryit-browser-6.png │ │ │ ├── tryit-editor-1.png │ │ │ ├── tryit-editor-2.png │ │ │ ├── tryit-editor-3.png │ │ │ ├── tryit-editor-4.png │ │ │ ├── tryit-editor-5.png │ │ │ ├── tryit-editor-6.png │ │ │ ├── tryit-run-hover.png │ │ │ ├── wso2-logo-small.png │ │ │ ├── aftercreatingfile.png │ │ │ ├── samples-taskmaster.png │ │ │ ├── javascriptoutoftags.png │ │ │ ├── samples-freshometer.png │ │ │ └── getallthemethodsforrequest.png │ │ │ ├── fonts │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ └── fontawesome-webfont.woff │ │ │ ├── helpers │ │ │ ├── documentation.js │ │ │ ├── index.js │ │ │ ├── quickstart.js │ │ │ ├── tryit.js │ │ │ ├── tryitframe.js │ │ │ └── nav.js │ │ │ └── renderers │ │ │ ├── tryitframe.js │ │ │ ├── index.js │ │ │ ├── tryit.js │ │ │ ├── about.js │ │ │ ├── editor.js │ │ │ ├── tools.js │ │ │ ├── debugger.js │ │ │ ├── samples.js │ │ │ ├── quickstart.js │ │ │ └── documentation.js │ ├── config │ │ ├── examples │ │ │ ├── include.jag │ │ │ ├── includeonce.jag │ │ │ ├── html.jag │ │ │ ├── Log.jag │ │ │ ├── parse.jag │ │ │ ├── print.jag │ │ │ ├── process.jag │ │ │ ├── response.jag │ │ │ ├── stringify.jag │ │ │ ├── html2.jag │ │ │ ├── i18n.jag │ │ │ ├── del.jag │ │ │ ├── put.jag │ │ │ ├── helloWorld.jag │ │ │ ├── server.jag │ │ │ ├── file.jag │ │ │ ├── post.jag │ │ │ ├── get.jag │ │ │ ├── rdb.jag │ │ │ ├── request.jag │ │ │ ├── wsstub.jag │ │ │ ├── require.jag │ │ │ ├── server2.jag │ │ │ ├── urimatcher.jag │ │ │ ├── application.jag │ │ │ ├── xhr.jag │ │ │ ├── session.jag │ │ │ ├── feed.jag │ │ │ ├── xml.jag │ │ │ ├── collection.jag │ │ │ ├── entry.jag │ │ │ ├── sender.jag │ │ │ ├── resource.jag │ │ │ ├── user.jag │ │ │ ├── ws.jag │ │ │ ├── metadatastore.jag │ │ │ ├── oauth.jag │ │ │ └── jagconf.jag │ │ ├── properties │ │ │ ├── i18n │ │ │ │ └── initrequest.hbs │ │ │ ├── rdb │ │ │ │ └── queryquerycallback.hbs │ │ │ ├── ws │ │ │ │ └── readyState.hbs │ │ │ ├── stringify │ │ │ │ └── jsonObj.hbs │ │ │ ├── print │ │ │ │ └── obj.hbs │ │ │ ├── webSocket │ │ │ │ ├── onclose.hbs │ │ │ │ ├── onbinary.hbs │ │ │ │ ├── onopen.hbs │ │ │ │ ├── ontext.hbs │ │ │ │ └── sendStringtextStreamstream.hbs │ │ │ ├── post │ │ │ │ └── headers.hbs │ │ │ ├── wsstub │ │ │ │ └── request.hbs │ │ │ ├── feed │ │ │ │ ├── title.hbs │ │ │ │ ├── author.hbs │ │ │ │ ├── category.hbs │ │ │ │ ├── rights.hbs │ │ │ │ ├── links.hbs │ │ │ │ ├── entries.hbs │ │ │ │ ├── logo.hbs │ │ │ │ ├── icon.hbs │ │ │ │ ├── authors.hbs │ │ │ │ ├── updated.hbs │ │ │ │ └── contributors.hbs │ │ │ ├── response │ │ │ │ └── addCookiecookie.hbs │ │ │ ├── file │ │ │ │ ├── getStream.hbs │ │ │ │ ├── del.hbs │ │ │ │ ├── openrrwwaa.hbs │ │ │ │ ├── moveStringtargetFileName.hbs │ │ │ │ ├── saveAsStringtargetLocation.hbs │ │ │ │ ├── close.hbs │ │ │ │ ├── readAll.hbs │ │ │ │ ├── readintnumberOfCharacters.hbs │ │ │ │ └── writeObjectObject.hbs │ │ │ ├── collection │ │ │ │ └── addPropertynamevalue.hbs │ │ │ ├── resource │ │ │ │ └── addPropertynamevalue.hbs │ │ │ ├── request │ │ │ │ ├── getAllCookies.hbs │ │ │ │ └── getCookiename.hbs │ │ │ ├── sender │ │ │ │ ├── Sender.hbs │ │ │ │ ├── to.hbs │ │ │ │ ├── bcc.hbs │ │ │ │ ├── cc.hbs │ │ │ │ ├── html.hbs │ │ │ │ └── addAttachmentStringfilePathFileHostObjectfile.hbs │ │ │ ├── xhr │ │ │ │ ├── readyState.hbs │ │ │ │ └── openmethodurlasync.hbs │ │ │ ├── jagconf │ │ │ │ └── securityConstraints.hbs │ │ │ ├── include.json │ │ │ ├── includeonce.json │ │ │ ├── metadatastore │ │ │ │ └── resourceExistsStringpath.hbs │ │ │ ├── oauth │ │ │ │ └── OAuthProviderprovider.hbs │ │ │ ├── server.json │ │ │ └── parse.json │ │ └── apis │ │ │ ├── html2.json │ │ │ ├── server2.json │ │ │ ├── server.json │ │ │ ├── feed.json │ │ │ ├── collection.json │ │ │ ├── user.json │ │ │ ├── entry.json │ │ │ ├── registry.json │ │ │ ├── sender.json │ │ │ ├── UserManager.json │ │ │ ├── request.json │ │ │ ├── session.json │ │ │ ├── wsstub.json │ │ │ ├── file.json │ │ │ ├── response.json │ │ │ ├── process.json │ │ │ ├── application.json │ │ │ ├── jagconf.json │ │ │ ├── oauth.json │ │ │ ├── metadatastore.json │ │ │ ├── resource.json │ │ │ ├── html.json │ │ │ ├── Log.json │ │ │ ├── include.json │ │ │ ├── xhr.json │ │ │ ├── parse.json │ │ │ ├── print.json │ │ │ ├── urimatcher.json │ │ │ ├── stringify.json │ │ │ ├── includeonce.json │ │ │ ├── ws.json │ │ │ ├── get.json │ │ │ ├── put.json │ │ │ ├── require.json │ │ │ ├── xml.json │ │ │ ├── webSocket.json │ │ │ ├── del.json │ │ │ ├── i18n.json │ │ │ ├── rdb.json │ │ │ └── post.json │ ├── content │ │ └── pages │ │ │ └── help.html │ ├── tryit │ │ └── samples │ │ │ └── post-test.jag │ ├── jaggery.conf │ ├── error.html │ ├── index.jag │ ├── tryit.jag │ ├── tools.jag │ ├── app.js │ ├── samples.jag │ ├── about.jag │ ├── editor.jag │ ├── debugger.jag │ ├── quickstart.jag │ ├── lib │ │ └── save.jag │ ├── tryitframe.jag │ └── documentation.jag ├── sample │ ├── destroy.js │ ├── init.js │ ├── error.html │ ├── error1.html │ ├── bar │ │ └── private.jag │ ├── chatroom │ │ ├── img │ │ │ ├── glyphicons-halflings.png │ │ │ └── glyphicons-halflings-white.png │ │ └── css │ │ │ └── chat-room.css │ ├── index.jag │ ├── ws │ │ ├── server.jag │ │ └── client.html │ └── jaggery.conf ├── taskmaster │ ├── bg.jpg │ ├── logo.png │ └── jaggery.conf ├── coffeeshop │ ├── img │ │ ├── bg.jpg │ │ ├── logo.jpg │ │ ├── close.png │ │ ├── glyphicons-halflings.png │ │ └── glyphicons-halflings-white.png │ ├── favicon.ico │ ├── jaggery.conf │ ├── model │ │ └── paymentQuery.jag │ └── controller │ │ └── payment.jag ├── shout │ ├── images │ │ ├── 1270.jpg │ │ ├── bg.jpg │ │ ├── g3211.png │ │ ├── popup.png │ │ ├── arrow_exc.png │ │ ├── crack_bg.png │ │ ├── fb_tiny.png │ │ ├── gad_close.png │ │ ├── loading.gif │ │ ├── lockpic.jpg │ │ ├── refresh.png │ │ ├── topbar_bg.png │ │ ├── 500_server.png │ │ ├── add_button.png │ │ ├── google_tiny.png │ │ ├── logout_png.png │ │ ├── shout_logo.png │ │ ├── shoutphone.png │ │ ├── soundwavebg.jpg │ │ ├── user_thumb.png │ │ ├── 404_magnifier.png │ │ ├── add_fb_button.png │ │ ├── avatar_thumb.png │ │ ├── gad_maximize.png │ │ ├── gad_settings.png │ │ ├── rajitha_thumb.png │ │ ├── settings_icon.png │ │ ├── settings_other.png │ │ ├── shout_button.png │ │ ├── twitter_tiny.png │ │ ├── add_google_button.png │ │ └── add_twitter_button.png │ ├── fancybox │ │ ├── blank.gif │ │ ├── fancybox.png │ │ ├── fancy_close.png │ │ ├── fancybox-x.png │ │ ├── fancybox-y.png │ │ ├── fancy_loading.png │ │ ├── fancy_nav_left.png │ │ ├── fancy_shadow_e.png │ │ ├── fancy_shadow_n.png │ │ ├── fancy_shadow_s.png │ │ ├── fancy_shadow_w.png │ │ ├── fancy_nav_right.png │ │ ├── fancy_shadow_ne.png │ │ ├── fancy_shadow_nw.png │ │ ├── fancy_shadow_se.png │ │ ├── fancy_shadow_sw.png │ │ ├── fancy_title_left.png │ │ ├── fancy_title_main.png │ │ ├── fancy_title_over.png │ │ └── fancy_title_right.png │ ├── jaggery.conf │ ├── font │ │ ├── DroidSans-webfont.eot │ │ ├── DroidSans-webfont.ttf │ │ ├── DroidSans-webfont.woff │ │ ├── DroidSans-Bold-webfont.eot │ │ ├── DroidSans-Bold-webfont.ttf │ │ ├── DroidSans-Bold-webfont.woff │ │ ├── Google Android License.txt │ │ └── stylesheet.css │ ├── js │ │ ├── flexcrollstyles.css │ │ └── util.js │ ├── 500.html │ └── 404.html └── freshometer │ ├── images │ ├── logo.png │ ├── loading.gif │ ├── thumbsup.gif │ ├── bg-footer.png │ ├── thumbsdown.gif │ ├── flixster-logo.png │ └── youtube-logo.png │ ├── jaggery.conf │ └── js │ └── jquery.noisy.min.js ├── modules ├── integration │ ├── tests-integration │ │ └── src │ │ │ └── test │ │ │ ├── resources │ │ │ ├── locale_es.json │ │ │ ├── syntax.jag │ │ │ ├── testfile.txt │ │ │ ├── locale_default.json │ │ │ ├── testhtml.html │ │ │ ├── testapp2 │ │ │ │ └── jaggery.conf │ │ │ ├── multipleheaders.jag │ │ │ ├── inculde.jag │ │ │ ├── log.jag │ │ │ ├── application.jag │ │ │ ├── keystores │ │ │ │ ├── products │ │ │ │ │ ├── wso2carbon.jks │ │ │ │ │ └── client-truststore.jks │ │ │ │ └── stratos │ │ │ │ │ ├── wso2carbon.jks │ │ │ │ │ └── client-truststore.jks │ │ │ ├── require.jag │ │ │ ├── filters.txt │ │ │ ├── client │ │ │ │ └── modules │ │ │ │ │ ├── rampart-1.6.1-wso2v12.mar │ │ │ │ │ ├── addressing-1.6.1-wso2v11-20140310.185847-90.mar │ │ │ │ │ ├── addressing-1.6.1-wso2v11-20140317.214549-105.mar │ │ │ │ │ ├── addressing-1.6.1-wso2v11-20140320.162938-110.mar │ │ │ │ │ ├── addressing-1.6.1-wso2v11-20140327.185840-124.mar │ │ │ │ │ └── addressing-1.6.1-wso2v11-20140330.185935-130.mar │ │ │ ├── gadget.jag │ │ │ ├── put.jag │ │ │ ├── delet.jag │ │ │ ├── get.jag │ │ │ ├── post.jag │ │ │ ├── wsstub.jag │ │ │ ├── database.jag │ │ │ ├── jaggery.conf │ │ │ ├── jsonTest.jag │ │ │ ├── i18n.jag │ │ │ ├── email.jag │ │ │ ├── server.jag │ │ │ ├── uri.jag │ │ │ ├── clientTester.jag │ │ │ ├── entry.jag │ │ │ ├── collection.jag │ │ │ ├── response.jag │ │ │ ├── feed.jag │ │ │ └── process.jag │ │ │ └── java │ │ │ └── org │ │ │ ├── wso2 │ │ │ └── jaggery │ │ │ │ └── integration │ │ │ │ └── tests │ │ │ │ └── wsmock │ │ │ │ ├── MockServicePublisher.java │ │ │ │ ├── MockService.java │ │ │ │ └── MockServiceImpl.java │ │ │ └── jaggeryjs │ │ │ └── integration │ │ │ └── tests │ │ │ └── JaggeryTestConstants.java │ └── tests-common │ │ └── integration-test-utils │ │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── jaggeryjs │ │ └── integration │ │ └── common │ │ └── utils │ │ └── TestExceptionHandler.java └── distribution │ └── src │ ├── resources │ └── db │ │ └── demo.h2.db │ └── assembly │ └── filter.properties ├── components └── jaggery-admin │ └── org.jaggeryjs.admin.styles │ └── src │ └── main │ └── resources │ └── web │ ├── favicon.ico │ ├── product │ └── about.html │ └── styles │ └── images │ ├── 1px.gif │ ├── bg.png │ ├── debug.png │ ├── edit.gif │ ├── error.png │ ├── fatal.png │ ├── help.gif │ ├── test.gif │ ├── trace.png │ ├── view.gif │ ├── warn.png │ ├── cancel.gif │ ├── collapse.gif │ ├── delete.gif │ ├── expand.gif │ ├── menu_ds.gif │ ├── reload.gif │ ├── magnifier.gif │ ├── menu-icon.gif │ ├── menu_home.gif │ ├── menu_logs.gif │ ├── menu_stats.gif │ ├── menu_users.gif │ ├── plugin_add.gif │ ├── information.gif │ ├── menu_add_ds.gif │ ├── menu_keystore.gif │ ├── menu_list_ds.gif │ ├── menu_logging.gif │ ├── menu_manage.gif │ ├── menu_monitor.gif │ ├── menu_restart.gif │ ├── menu_security.gif │ ├── menu_services.gif │ ├── menu_tracer.gif │ ├── plugin_delete.gif │ ├── menu_transports.gif │ ├── menu_upload_ds.gif │ ├── appserver-home-bg.gif │ ├── appserver-mgt-logo.gif │ ├── default-menu-icon.gif │ ├── menu_global_config.gif │ ├── menu_user_groups.gif │ ├── menu_user_stores.gif │ ├── app-server-button-bg.gif │ ├── app-server-header-bg.gif │ ├── appserver-header-bg.gif │ ├── app-server-buttonRow-bg.gif │ ├── app-server-header-logo.gif │ ├── app-server-menu-header.gif │ ├── app-server-menu-header.png │ ├── app-server-table-header.gif │ ├── appserver-header-logo.gif │ ├── app-server-menu-panel-bg.gif │ ├── appserver-button-bg-hover.gif │ ├── app-server-header-links-bg.gif │ ├── app-server-header-region-bg.gif │ └── appserver-header-region-bg.gif ├── .gitignore └── issue_template.md /.gitmodules: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/ROOT-old/tmp/foo.txt: -------------------------------------------------------------------------------- 1 | Hello from Jaggery 2 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/body.hbs: -------------------------------------------------------------------------------- 1 | {{{text}}} 2 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/title.hbs: -------------------------------------------------------------------------------- 1 | {{{text}}} 2 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/include.jag: -------------------------------------------------------------------------------- 1 | <% 2 | include("header.jag") 3 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/js/quickstart.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | prettyPrint(); 3 | }) -------------------------------------------------------------------------------- /apps/ROOT/config/examples/includeonce.jag: -------------------------------------------------------------------------------- 1 | <% 2 | include_once("header.jag") 3 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/tryitframe.css: -------------------------------------------------------------------------------- 1 | body{ 2 | padding:0; 3 | } 4 | 5 | 6 | -------------------------------------------------------------------------------- /apps/sample/destroy.js: -------------------------------------------------------------------------------- 1 | var log = new Log(); 2 | log.info("Stopping sample Jaggery app"); -------------------------------------------------------------------------------- /apps/sample/init.js: -------------------------------------------------------------------------------- 1 | var log = new Log(); 2 | log.info("Initializing sample Jaggery app"); -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/locale_es.json: -------------------------------------------------------------------------------- 1 | {"greet": "hola"} -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/syntax.jag: -------------------------------------------------------------------------------- 1 | <%="syntax test" %> -------------------------------------------------------------------------------- /apps/ROOT/config/examples/html.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var total = 1 + 1; 3 | print(total); 4 | %> -------------------------------------------------------------------------------- /apps/sample/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Error 400 Page

4 | 5 | -------------------------------------------------------------------------------- /apps/sample/error1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Error 500 Page

4 | 5 | -------------------------------------------------------------------------------- /apps/ROOT/content/pages/help.html: -------------------------------------------------------------------------------- 1 |
2 | Blog Aggregator user help goes here 3 |
4 | -------------------------------------------------------------------------------- /apps/ROOT/tryit/samples/post-test.jag: -------------------------------------------------------------------------------- 1 | <% 2 | print('{ "POST data" : "'+request.getContent()+'"}' ); -------------------------------------------------------------------------------- /apps/taskmaster/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/taskmaster/bg.jpg -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/testfile.txt: -------------------------------------------------------------------------------- 1 | Successfully read testfile.txt -------------------------------------------------------------------------------- /apps/ROOT-old/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/favicon.ico -------------------------------------------------------------------------------- /apps/ROOT/jaggery.conf: -------------------------------------------------------------------------------- 1 | { 2 | "welcomeFiles": ["index.jag"], 3 | "initScripts": ["app.js"] 4 | } 5 | -------------------------------------------------------------------------------- /apps/coffeeshop/img/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/coffeeshop/img/bg.jpg -------------------------------------------------------------------------------- /apps/shout/images/1270.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/1270.jpg -------------------------------------------------------------------------------- /apps/shout/images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/bg.jpg -------------------------------------------------------------------------------- /apps/taskmaster/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/taskmaster/logo.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/bg.png -------------------------------------------------------------------------------- /apps/ROOT/config/examples/Log.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var log = new Log(); 3 | log.info("This is an INFO level log"); 4 | %> -------------------------------------------------------------------------------- /apps/coffeeshop/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/coffeeshop/favicon.ico -------------------------------------------------------------------------------- /apps/coffeeshop/img/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/coffeeshop/img/logo.jpg -------------------------------------------------------------------------------- /apps/sample/bar/private.jag: -------------------------------------------------------------------------------- 1 | 2 | <% 3 | print("this is a private file"); 4 | %> 5 | 6 | -------------------------------------------------------------------------------- /apps/shout/images/g3211.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/g3211.png -------------------------------------------------------------------------------- /apps/shout/images/popup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/popup.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/close.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/load.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/load.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/play.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/play.gif -------------------------------------------------------------------------------- /apps/ROOT-old/images/shell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/shell.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/wso2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/wso2.png -------------------------------------------------------------------------------- /apps/ROOT/config/examples/parse.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var jsonString = '{"name":"nuwan"}'; 3 | print(parse(jsonString)); 4 | %> -------------------------------------------------------------------------------- /apps/ROOT/error.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/coffeeshop/img/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/coffeeshop/img/close.png -------------------------------------------------------------------------------- /apps/shout/fancybox/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/blank.gif -------------------------------------------------------------------------------- /apps/shout/images/arrow_exc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/arrow_exc.png -------------------------------------------------------------------------------- /apps/shout/images/crack_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/crack_bg.png -------------------------------------------------------------------------------- /apps/shout/images/fb_tiny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/fb_tiny.png -------------------------------------------------------------------------------- /apps/shout/images/gad_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/gad_close.png -------------------------------------------------------------------------------- /apps/shout/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/loading.gif -------------------------------------------------------------------------------- /apps/shout/images/lockpic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/lockpic.jpg -------------------------------------------------------------------------------- /apps/shout/images/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/refresh.png -------------------------------------------------------------------------------- /apps/shout/images/topbar_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/topbar_bg.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/debugger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/debugger.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/icon-try.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/icon-try.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/jagglogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/jagglogo.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/jaglogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/jaglogo.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/twitter.png -------------------------------------------------------------------------------- /apps/freshometer/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/freshometer/images/logo.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancybox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancybox.png -------------------------------------------------------------------------------- /apps/shout/images/500_server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/500_server.png -------------------------------------------------------------------------------- /apps/shout/images/add_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/add_button.png -------------------------------------------------------------------------------- /apps/shout/images/google_tiny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/google_tiny.png -------------------------------------------------------------------------------- /apps/shout/images/logout_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/logout_png.png -------------------------------------------------------------------------------- /apps/shout/images/shout_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/shout_logo.png -------------------------------------------------------------------------------- /apps/shout/images/shoutphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/shoutphone.png -------------------------------------------------------------------------------- /apps/shout/images/soundwavebg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/soundwavebg.jpg -------------------------------------------------------------------------------- /apps/shout/images/user_thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/user_thumb.png -------------------------------------------------------------------------------- /apps/shout/jaggery.conf: -------------------------------------------------------------------------------- 1 | { 2 | "displayName":"Shout Sample", 3 | "welcomeFiles":["index.jag", "index.html"] 4 | } 5 | -------------------------------------------------------------------------------- /apps/ROOT-old/images/commandline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/commandline.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/docs_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/docs_thumb.jpg -------------------------------------------------------------------------------- /apps/ROOT-old/images/fresh_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/fresh_thumb.jpg -------------------------------------------------------------------------------- /apps/ROOT-old/images/icon-apache.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/icon-apache.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/icon-docs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/icon-docs.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/icon-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/icon-editor.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/icon-howto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/icon-howto.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/mail-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/mail-list.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/shout_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/shout_thumb.jpg -------------------------------------------------------------------------------- /apps/ROOT-old/images/task_thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/task_thumb.jpg -------------------------------------------------------------------------------- /apps/ROOT-old/images/topbar_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/topbar_logo.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/editor.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/load.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/load.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/logo.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/shell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/shell.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/js/zoomico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/js/zoomico.png -------------------------------------------------------------------------------- /apps/freshometer/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/freshometer/images/loading.gif -------------------------------------------------------------------------------- /apps/freshometer/images/thumbsup.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/freshometer/images/thumbsup.gif -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_close.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancybox-x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancybox-x.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancybox-y.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancybox-y.png -------------------------------------------------------------------------------- /apps/shout/images/404_magnifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/404_magnifier.png -------------------------------------------------------------------------------- /apps/shout/images/add_fb_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/add_fb_button.png -------------------------------------------------------------------------------- /apps/shout/images/avatar_thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/avatar_thumb.png -------------------------------------------------------------------------------- /apps/shout/images/gad_maximize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/gad_maximize.png -------------------------------------------------------------------------------- /apps/shout/images/gad_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/gad_settings.png -------------------------------------------------------------------------------- /apps/shout/images/rajitha_thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/rajitha_thumb.png -------------------------------------------------------------------------------- /apps/shout/images/settings_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/settings_icon.png -------------------------------------------------------------------------------- /apps/shout/images/settings_other.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/settings_other.png -------------------------------------------------------------------------------- /apps/shout/images/shout_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/shout_button.png -------------------------------------------------------------------------------- /apps/shout/images/twitter_tiny.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/twitter_tiny.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/bugtrack_ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/bugtrack_ico.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/bullet-point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/bullet-point.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/debug_config1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/debug_config1.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/debug_config2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/debug_config2.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/downloadgreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/downloadgreen.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/editor_config.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/editor_config.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/feather-small.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/feather-small.gif -------------------------------------------------------------------------------- /apps/ROOT-old/images/icon-debugger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/icon-debugger.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/icon-samples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/icon-samples.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/j-mgt-console.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/j-mgt-console.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/label-forkme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/label-forkme.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/uploadjaggery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/uploadjaggery.png -------------------------------------------------------------------------------- /apps/ROOT/config/examples/print.jag: -------------------------------------------------------------------------------- 1 | 2 | 3 | <% 4 | print('Hi,

Jaggery

'); 5 | %> 6 | 7 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/debugger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/debugger.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/geometry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/geometry.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/typehtml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/typehtml.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/js/documentation.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | prettyPrint(); 3 | $('a[data-toggle=tooltip]').tooltip(); 4 | 5 | }) -------------------------------------------------------------------------------- /apps/freshometer/images/bg-footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/freshometer/images/bg-footer.png -------------------------------------------------------------------------------- /apps/freshometer/images/thumbsdown.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/freshometer/images/thumbsdown.gif -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_loading.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_nav_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_nav_left.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_shadow_e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_shadow_e.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_shadow_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_shadow_n.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_shadow_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_shadow_s.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_shadow_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_shadow_w.png -------------------------------------------------------------------------------- /apps/shout/font/DroidSans-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/font/DroidSans-webfont.eot -------------------------------------------------------------------------------- /apps/shout/font/DroidSans-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/font/DroidSans-webfont.ttf -------------------------------------------------------------------------------- /apps/shout/font/DroidSans-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/font/DroidSans-webfont.woff -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/locale_default.json: -------------------------------------------------------------------------------- 1 | { 2 | "greet": "hello", 3 | "company": "wso2" 4 | } -------------------------------------------------------------------------------- /apps/ROOT-old/images/icon-changelog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/icon-changelog.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/source_code_ico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/source_code_ico.png -------------------------------------------------------------------------------- /apps/ROOT/config/examples/process.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var process = require("process"); 4 | print(process.getEnv("JAVA_HOME")); 5 | 6 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/commandline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/commandline.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/createfile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/createfile.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/methodparam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/methodparam.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-run.png -------------------------------------------------------------------------------- /apps/freshometer/images/flixster-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/freshometer/images/flixster-logo.png -------------------------------------------------------------------------------- /apps/freshometer/images/youtube-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/freshometer/images/youtube-logo.png -------------------------------------------------------------------------------- /apps/freshometer/jaggery.conf: -------------------------------------------------------------------------------- 1 | { 2 | "displayName":"Fresh-o-Meter Sample", 3 | "welcomeFiles":["index.jag", "index.html"] 4 | } 5 | -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_nav_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_nav_right.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_shadow_ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_shadow_ne.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_shadow_nw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_shadow_nw.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_shadow_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_shadow_se.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_shadow_sw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_shadow_sw.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_title_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_title_left.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_title_main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_title_main.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_title_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_title_over.png -------------------------------------------------------------------------------- /apps/shout/fancybox/fancy_title_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/fancybox/fancy_title_right.png -------------------------------------------------------------------------------- /apps/shout/images/add_google_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/add_google_button.png -------------------------------------------------------------------------------- /apps/shout/images/add_twitter_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/images/add_twitter_button.png -------------------------------------------------------------------------------- /apps/taskmaster/jaggery.conf: -------------------------------------------------------------------------------- 1 | { 2 | "displayName":"Notepad Session Sample", 3 | "welcomeFiles":["index.jag", "index.html"] 4 | } 5 | -------------------------------------------------------------------------------- /apps/ROOT-old/images/coffee_shop_sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/coffee_shop_sample.jpg -------------------------------------------------------------------------------- /apps/ROOT/config/examples/response.jag: -------------------------------------------------------------------------------- 1 | <% 2 | response.addHeader("custom-header", "jaggery_response"); 3 | print("Hello World"); 4 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/createobject.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/createobject.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/debug_config1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/debug_config1.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/debug_config2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/debug_config2.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/editor_config.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/editor_config.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/elrte-toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/elrte-toolbar.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/j-mgt-console.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/j-mgt-console.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/jaggery-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/jaggery-dark.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/samples-shout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/samples-shout.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/uploadjaggery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/uploadjaggery.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/addPost.hbs: -------------------------------------------------------------------------------- 1 |
2 |

3 | 4 | -------------------------------------------------------------------------------- /apps/shout/font/DroidSans-Bold-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/font/DroidSans-Bold-webfont.eot -------------------------------------------------------------------------------- /apps/shout/font/DroidSans-Bold-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/font/DroidSans-Bold-webfont.ttf -------------------------------------------------------------------------------- /apps/shout/font/DroidSans-Bold-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/shout/font/DroidSans-Bold-webfont.woff -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/createnewproject.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/createnewproject.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/landing-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/landing-banner.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/landing-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/landing-editor.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/samples-coffee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/samples-coffee.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/samples-jaggery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/samples-jaggery.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-browser-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-browser-1.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-browser-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-browser-2.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-browser-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-browser-3.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-browser-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-browser-4.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-browser-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-browser-5.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-browser-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-browser-6.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-editor-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-editor-1.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-editor-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-editor-2.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-editor-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-editor-3.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-editor-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-editor-4.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-editor-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-editor-5.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-editor-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-editor-6.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/tryit-run-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/tryit-run-hover.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/wso2-logo-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/wso2-logo-small.png -------------------------------------------------------------------------------- /apps/coffeeshop/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/coffeeshop/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/testhtml.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Test Jaggery html

4 | 5 | -------------------------------------------------------------------------------- /apps/ROOT-old/images/ide_doc_images/typehtml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/ide_doc_images/typehtml.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/aftercreatingfile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/aftercreatingfile.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/samples-taskmaster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/samples-taskmaster.png -------------------------------------------------------------------------------- /modules/distribution/src/resources/db/demo.h2.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/distribution/src/resources/db/demo.h2.db -------------------------------------------------------------------------------- /apps/ROOT-old/images/ide_doc_images/createfile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/ide_doc_images/createfile.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/ide_doc_images/methodparam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/ide_doc_images/methodparam.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/javascriptoutoftags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/javascriptoutoftags.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/samples-freshometer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/samples-freshometer.png -------------------------------------------------------------------------------- /apps/coffeeshop/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/coffeeshop/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /apps/sample/chatroom/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/sample/chatroom/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/testapp2/jaggery.conf: -------------------------------------------------------------------------------- 1 | { 2 | "displayName":"Jaggery Test App2", 3 | "initScripts" : ["init.js"] 4 | } -------------------------------------------------------------------------------- /apps/ROOT-old/images/ide_doc_images/createobject.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/ide_doc_images/createobject.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /apps/ROOT-old/images/ide_doc_images/createnewproject.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/ide_doc_images/createnewproject.png -------------------------------------------------------------------------------- /apps/ROOT/config/examples/stringify.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var myJson = {}; 3 | myJson.name = "nuwan"; 4 | myJson.company = "wso2"; 5 | 6 | print(stringify(myJson)); 7 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/img/getallthemethodsforrequest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/img/getallthemethodsforrequest.png -------------------------------------------------------------------------------- /apps/sample/chatroom/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/sample/chatroom/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /apps/ROOT-old/images/ide_doc_images/aftercreatingfile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/ide_doc_images/aftercreatingfile.png -------------------------------------------------------------------------------- /apps/ROOT/config/examples/html2.jag: -------------------------------------------------------------------------------- 1 | 2 | 3 | <% 4 | var total = 1 + 1; 5 | %> 6 |

Below is a Jaggery print

7 | <%=total%> 8 | 9 | -------------------------------------------------------------------------------- /apps/ROOT-old/images/ide_doc_images/javascriptoutoftags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/ide_doc_images/javascriptoutoftags.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/header.hbs: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /apps/ROOT-old/images/ide_doc_images/getallthemethodsforrequest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT-old/images/ide_doc_images/getallthemethodsforrequest.png -------------------------------------------------------------------------------- /apps/ROOT/config/examples/i18n.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var i18n = require("i18n"); 3 | i18n.init(request); 4 | %> 5 | 6 | <% 7 | print(i18n.localize("greetings.local", "Greetings from Jaggery")); 8 | %> -------------------------------------------------------------------------------- /apps/sample/index.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var log = new Log(); 3 | log.info(request.getContent()); 4 | response.contentType = 'application/json'; 5 | print('{ "data" : { "row" : "val" } }'); 6 | %> 7 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/multipleheaders.jag: -------------------------------------------------------------------------------- 1 | <% 2 | response.addHeader("custom-header", "header1"); 3 | response.addHeader("custom-header", "header2"); 4 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/inculde.jag: -------------------------------------------------------------------------------- 1 | <% 2 | include("syntax.jag"); 3 | include("syntax.jag"); 4 | include_once("log.jag"); 5 | include_once("log.jag"); 6 | %> -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/log.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var log = new Log(); 3 | log.info("This is an INFO level log"); 4 | print("This is an INFO level log"); 5 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/i18n/initrequest.hbs: -------------------------------------------------------------------------------- 1 |

initialize i18n object with the request

2 |
3 | var i18n = require("i18n");
4 | i18n.init(request);
5 | 
6 | 7 | 8 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /apps/ROOT-old/jaggery.conf: -------------------------------------------------------------------------------- 1 | { 2 | "displayName":"Jaggery Documentation", 3 | "welcomeFiles":["index.jag", "index.html"], 4 | "errorPages": 5 | { 6 | "404":"/404.jag" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /apps/ROOT/index.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var caramel; 3 | caramel = require('caramel'); 4 | caramel.render({ 5 | 'title': {text :'Jaggery'}, 6 | 'body' : {}, 7 | 'nav' : {currentPage:'home'} 8 | }); 9 | %> 10 | -------------------------------------------------------------------------------- /apps/ROOT/tryit.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var caramel; 3 | caramel = require('caramel'); 4 | caramel.render({ 5 | 'title': {text :'Try it!'}, 6 | 'body' : {}, 7 | 'nav' : {currentPage:'Try it!'} 8 | }); 9 | %> 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/del.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var data = {'key':'value'}; 3 | var headers = {'key', 'value'}; 4 | del(url, data, "text", headers, function (data, xhr) { 5 | log("Response received"); 6 | } 7 | ); 8 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/examples/put.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var data = {'key':'value'}; 3 | var headers = {'key', 'value'}; 4 | put(url, data, "text", headers, function (data, xhr) { 5 | log("Response received"); 6 | } 7 | ); 8 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/rdb/queryquerycallback.hbs: -------------------------------------------------------------------------------- 1 |
2 | db.query("SELECT * FROM myTable", function(results) {})
3 | 
4 | 5 |

6 | Query result will be returned to the callback 7 |

-------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/nav.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/application.jag: -------------------------------------------------------------------------------- 1 | <% 2 | application.put("wso2", "test jaggery application value"); 3 | print(application.get("wso2")); 4 | application.remove("wso2"); 5 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/apps/ROOT/themes/ROOT/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/favicon.ico -------------------------------------------------------------------------------- /apps/ROOT/config/properties/ws/readyState.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var jsonObj = {};
 3 | jsonObj.name = "nuwan";
 4 | jsonObj.company = "wso2";
 5 | 
6 | 7 |

8 | A JSON Object 9 |

10 | 11 | 12 | -------------------------------------------------------------------------------- /apps/ROOT/tools.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var caramel; 3 | caramel = require('caramel'); 4 | caramel.render({ 5 | 'title': {text :'Tools'}, 6 | 'body' : {}, 7 | 'nav' : {currentPage:'tools'}, 8 | 'sidebar' : {} 9 | }); 10 | %> -------------------------------------------------------------------------------- /apps/ROOT/app.js: -------------------------------------------------------------------------------- 1 | var caramel = require('caramel'); 2 | 3 | caramel.configs({ 4 | context: '', 5 | cache: true, 6 | negotiation: true, 7 | themer: function () { 8 | return 'ROOT'; 9 | } 10 | }); 11 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/stringify/jsonObj.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var jsonObj = {};
 3 | jsonObj.name = "nuwan";
 4 | jsonObj.company = "wso2";
 5 | 
6 | 7 |

8 | A JSON Object 9 |

10 | 11 | 12 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/product/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/keystores/products/wso2carbon.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/integration/tests-integration/src/test/resources/keystores/products/wso2carbon.jks -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/keystores/stratos/wso2carbon.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/integration/tests-integration/src/test/resources/keystores/stratos/wso2carbon.jks -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/require.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var core = require("core"); 4 | var log = new core.Log(); 5 | log.info("Required the module"); 6 | print("core require was success"); 7 | 8 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/examples/helloWorld.jag: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 | <% 5 | var name = 'Jaggery'; 6 | print("Hello " + name); 7 | %> 8 |

9 | 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/print/obj.hbs: -------------------------------------------------------------------------------- 1 |
2 | var obj = {"name": "jaggery"};
3 | print(obj); 
4 | 
5 | 6 |

7 | Passing a Javascript object to print() serialize the object to the response 8 |

9 | -------------------------------------------------------------------------------- /apps/ROOT/samples.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var caramel; 3 | caramel = require('caramel'); 4 | caramel.render({ 5 | 'title': {text :'Samples'}, 6 | 'body' : {}, 7 | 'nav' : {currentPage:'samples'}, 8 | 'sidebar' : {} 9 | }); 10 | %> 11 | -------------------------------------------------------------------------------- /modules/distribution/src/assembly/filter.properties: -------------------------------------------------------------------------------- 1 | product.name=Jaggery Runtime 2 | product.version=0.9.0-SNAPSHOT 3 | carbon.product.version=0.9.0-SNAPSHOT 4 | default.server.role=JaggeryServer 5 | hotdeployment=true 6 | hotupdate=true 7 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/filters.txt: -------------------------------------------------------------------------------- 1 | -org.apache.axis2.jaxws.* 2 | -org.apache.cxf.aegis.* 3 | -org.apache.axis2.clustering.* 4 | -org.apache.cxf.binding.* 5 | -org.apache.cxf.tools.* 6 | -org.apache.xmlbeans.* -------------------------------------------------------------------------------- /apps/ROOT/about.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var caramel; 3 | caramel = require('caramel'); 4 | caramel.render({ 5 | 'title': {text :'About Jaggery'}, 6 | 'body' : {}, 7 | 'nav' : {currentPage:'about'}, 8 | 'sidebar' : {} 9 | }); 10 | %> 11 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/server.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var carbon = require('carbon'); 4 | var url = 'https://10.100.0.49:9443/admin/services/'; 5 | var server = new carbon.server.Server(url); 6 | 7 | print(server.authenticate('admin','admin')); 8 | %> -------------------------------------------------------------------------------- /apps/ROOT/editor.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var caramel; 3 | caramel = require('caramel'); 4 | caramel.render({ 5 | 'title': {text :'Tools - Editor'}, 6 | 'body' : {}, 7 | 'nav' : {currentPage:'tools'}, 8 | 'sidebar' : {} 9 | }); 10 | %> 11 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/1px.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/1px.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/bg.png -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/keystores/stratos/client-truststore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/integration/tests-integration/src/test/resources/keystores/stratos/client-truststore.jks -------------------------------------------------------------------------------- /apps/ROOT-old/apidocs/resources/data.jag: -------------------------------------------------------------------------------- 1 | <% 2 | print({ 3 | method : request.getMethod(), 4 | url : request.getRequestURL(), 5 | content : request.getContent(), 6 | headers : request.getAllHeaders() 7 | }); 8 | %> -------------------------------------------------------------------------------- /apps/ROOT-old/apidocs/resources/home.jag: -------------------------------------------------------------------------------- 1 | <% 2 | print({ 3 | method : request.getMethod(), 4 | url : request.getRequestURL(), 5 | content : request.getContent(), 6 | headers : request.getAllHeaders() 7 | }); 8 | %> -------------------------------------------------------------------------------- /apps/ROOT/debugger.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var caramel; 3 | caramel = require('caramel'); 4 | caramel.render({ 5 | 'title': {text :'Tools - Debugger'}, 6 | 'body' : {}, 7 | 'nav' : {currentPage:'tools'}, 8 | 'sidebar' : {} 9 | }); 10 | %> 11 | -------------------------------------------------------------------------------- /apps/ROOT/quickstart.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var caramel; 3 | caramel = require('caramel'); 4 | caramel.render({ 5 | 'title': {text :'Quickstart'}, 6 | 'body' : {}, 7 | 'nav' : {currentPage:'quickstart'}, 8 | 'sidebar' : {} 9 | }); 10 | %> 11 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/debug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/debug.png -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/edit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/edit.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/error.png -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/fatal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/fatal.png -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/help.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/help.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/test.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/test.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/trace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/trace.png -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/view.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/view.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/warn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/warn.png -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/client/modules/rampart-1.6.1-wso2v12.mar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/integration/tests-integration/src/test/resources/client/modules/rampart-1.6.1-wso2v12.mar -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/keystores/products/client-truststore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/integration/tests-integration/src/test/resources/keystores/products/client-truststore.jks -------------------------------------------------------------------------------- /apps/ROOT/config/apis/html2.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "html2", 3 | "label": "<%= %>", 4 | "category1": "Basic Syntax", 5 | "overview": "<%= %> are the escaping characters for print out server-side data.", 6 | "deprecated" : false, 7 | "tryit": true 8 | } 9 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/helpers/documentation.js: -------------------------------------------------------------------------------- 1 | var resources = function (page, meta) { 2 | return { 3 | js: ['google-code-prettify/prettify.js', 'documentation.js'], 4 | css: ['tomorrow.css'], 5 | code: [] 6 | }; 7 | }; 8 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/cancel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/cancel.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/collapse.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/collapse.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/delete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/delete.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/expand.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/expand.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_ds.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_ds.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/reload.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/reload.gif -------------------------------------------------------------------------------- /apps/ROOT/config/apis/server2.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "server2", 3 | "label": "server", 4 | "category1": "Add-ons", 5 | "category2" : "Carbon", 6 | "overview": "Server object allows to do operations on Carbon server using Jaggery.", 7 | "deprecated" : false 8 | } -------------------------------------------------------------------------------- /apps/ROOT/config/examples/file.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var path = "/foo.txt"; 3 | var file = new File(path); 4 | file.open("r"); 5 | var message = ""; 6 | 7 | message = file.readAll(); 8 | print(message); 9 | file.close(); 10 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/examples/post.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var url = 'http://jaggeryjs.org/apidocs/resources/data.jag'; 3 | var result = post(url, 'Jaggery HTTP POST', { 4 | "User-Agent" : "Jaggery-XHR", 5 | "Country" : "LK" 6 | }, 'json'); 7 | print(result.data); 8 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/webSocket/onclose.hbs: -------------------------------------------------------------------------------- 1 |
2 | webSocket.onclose = function (stream) { 
3 | 	log.info('Client Close')
4 | };
5 | 
6 | 7 |

8 | Create the instance that will process when connection is closed. 9 |

-------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/renderers/tryitframe.js: -------------------------------------------------------------------------------- 1 | var render = function (theme, data, meta, require) { 2 | theme('modal', { 3 | body: [ 4 | { 5 | partial:'tryitframe', 6 | context: data.body 7 | } 8 | ] 9 | }); 10 | }; 11 | 12 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/magnifier.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/magnifier.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu-icon.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_home.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_home.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_logs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_logs.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_stats.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_stats.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_users.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_users.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/plugin_add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/plugin_add.gif -------------------------------------------------------------------------------- /apps/ROOT/config/apis/server.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "server", 3 | "label": "server.Server", 4 | "category1": "Add-ons", 5 | "category2" : "Carbon", 6 | "overview": "Server object allows to do operations on Carbon server using Jaggery.", 7 | "deprecated" : false 8 | } -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/helpers/index.js: -------------------------------------------------------------------------------- 1 | var resources = function (page, meta) { 2 | return { 3 | js: ['google-code-prettify/prettify.js', 'documentation.js'], 4 | css: ['tomorrow-night-eighties.css'], 5 | code: [] 6 | }; 7 | }; 8 | 9 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/information.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/information.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_add_ds.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_add_ds.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_keystore.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_keystore.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_list_ds.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_list_ds.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_logging.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_logging.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_manage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_manage.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_monitor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_monitor.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_restart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_restart.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_security.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_security.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_services.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_services.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_tracer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_tracer.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/plugin_delete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/plugin_delete.gif -------------------------------------------------------------------------------- /apps/ROOT/config/apis/feed.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "feed", 3 | "label": "Feed", 4 | "category1": "Built-ins", 5 | "category2" : "Feed", 6 | "overview": "The Feed API handles reading and writing Atom feeds", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/post/headers.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var cookie= {'name':'test','value':'Cookie testing'};
 3 | response.addCookie(cookie)
 4 | 
5 | 6 |

7 | Adds the specified cookie to the response. 8 |

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/wsstub/request.hbs: -------------------------------------------------------------------------------- 1 |
2 | var getVersion = stub.services['Version'].operations['getVersion'];
3 | print(getVersion.request(null)); 
4 | 
5 |

6 | request() is a part of the operations for a given service. 7 |

-------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/helpers/quickstart.js: -------------------------------------------------------------------------------- 1 | var resources = function (page, meta) { 2 | return { 3 | js: ['google-code-prettify/prettify.js', 'quickstart.js'], 4 | css: ['tomorrow.css'], 5 | code: [] 6 | }; 7 | }; 8 | 9 | 10 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_transports.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_transports.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_upload_ds.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_upload_ds.gif -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Sources # 2 | *.class 3 | 4 | # Packages # 5 | ############ 6 | *.jar 7 | *.rar 8 | *.tar 9 | *.zip 10 | 11 | # IDE files # 12 | *.iml 13 | *.ipw 14 | .idea 15 | .classpath 16 | .project 17 | .settings 18 | *.ipr 19 | *.iml 20 | *.iws 21 | target -------------------------------------------------------------------------------- /apps/ROOT/config/apis/collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "collection", 3 | "label": "Collection", 4 | "category1": "Built-ins", 5 | "category2" : "Data Storage", 6 | "overview": "Collection can contain resources", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/user.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "user", 3 | "label": "user.User", 4 | "category1": "Add-ons", 5 | "category2" : "Carbon", 6 | "overview": "User object allows to do operations on specific user in Carbon user store using Jaggery.", 7 | "deprecated" : false 8 | } -------------------------------------------------------------------------------- /apps/ROOT/config/examples/get.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var url = "https://api.twitter.com/1/statuses/user_timeline.json"; 3 | var data = { include_entities:true,include_rts:true,screen_name:"wso2",count:1 }; 4 | var twitterJson = get(url, data ,"json"); 5 | print(twitterJson); 6 | %> 7 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-home-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-home-bg.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-mgt-logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-mgt-logo.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/default-menu-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/default-menu-icon.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_global_config.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_global_config.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_user_groups.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_user_groups.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_user_stores.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/menu_user_stores.gif -------------------------------------------------------------------------------- /apps/ROOT/config/apis/entry.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "entry", 3 | "label": "Entry", 4 | "category1": "Built-ins", 5 | "category2" : "Feed", 6 | "overview": "Entry object is the container for entries returned by Feed.", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/lib/save.jag: -------------------------------------------------------------------------------- 1 | <% 2 | if(request.getContent()){ 3 | var fileName = new Date().getTime(); 4 | var path = "../content/posts/"+fileName; 5 | var file = new File(path); 6 | file.open("w"); 7 | file.write(request.getContent()); 8 | file.close(); 9 | } 10 | %> 11 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-button-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-button-bg.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-header-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-header-bg.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-header-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-header-bg.gif -------------------------------------------------------------------------------- /apps/ROOT/config/apis/registry.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "registry", 3 | "label": "Registry", 4 | "category1": "Add-ons", 5 | "category2" : "Carbon", 6 | "overview": "Registry contains all functions related to Carbon registry which can be done in Jaggery. ", 7 | "deprecated" : false 8 | } -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/title.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.title
 3 | 
4 |

5 | Returns the title of the feed. 6 |

7 |
 8 | feed.title = "title";
 9 | 
10 |

11 | Setting the title of the feed. 12 |

13 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/response/addCookiecookie.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var cookie= {'name':'test','value':'Cookie testing'};
 3 | response.addCookie(cookie)
 4 | 
5 | 6 |

7 | Adds the specified cookie to the response. 8 |

9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-buttonRow-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-buttonRow-bg.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-header-logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-header-logo.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-menu-header.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-menu-header.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-menu-header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-menu-header.png -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-table-header.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-table-header.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-header-logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-header-logo.gif -------------------------------------------------------------------------------- /apps/ROOT/config/apis/sender.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "sender", 3 | "label": "Sender", 4 | "category1": "Add-ons", 5 | "category2" : "Email", 6 | "overview": "The Sender Object allows users to send out email from their apps.", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-menu-panel-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-menu-panel-bg.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-button-bg-hover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-button-bg-hover.gif -------------------------------------------------------------------------------- /apps/ROOT/config/apis/UserManager.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "UserManager", 3 | "label": "user.UserManager", 4 | "category1": "Add-ons", 5 | "category2" : "Carbon", 6 | "overview": "UserManager object allows to do operations on the Carbon user store in Jaggery.", 7 | "deprecated" : false 8 | } 9 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/rdb.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var db = new Database("jdbc:h2:tmp/demo", "admin", "admin"); 3 | 4 | db.query("INSERT INTO demo VALUES('WSO2','59 Flower Rd'), ('WSO2 UK', 'Emsworth, Hampshire, UK');"); 5 | 6 | var result = db.query("SELECT * FROM demo"); 7 | 8 | print(result); 9 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/author.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.author
 3 | 
4 |

5 | 6 | Returns the author of the feed. 7 |

8 |
 9 | feed.author = "author1";
10 | 
11 |

12 | Setting an author to the feed. 13 |

14 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/category.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.author
 3 | 
4 |

5 | 6 | Returns the author of the feed. 7 |

8 |
 9 | feed.author = "author1";
10 | 
11 |

12 | Setting an author to the feed. 13 |

14 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/rights.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.rights
 3 | 
4 |

5 | Returns the rights of the feed. 6 |

7 |
 8 | feed.rights = "rights";
 9 | 
10 |

11 | Setting the rights for the feed. 12 |

13 | 14 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/webSocket/onbinary.hbs: -------------------------------------------------------------------------------- 1 |
2 | webSocket.onopen = function (stream) { 
3 | 	log.info('Client Open : ' + stream.toString());
4 | };
5 | 
6 | 7 |

8 | Create the instance that will process when socket connection is established. 9 |

-------------------------------------------------------------------------------- /apps/ROOT/config/properties/webSocket/onopen.hbs: -------------------------------------------------------------------------------- 1 |
2 | webSocket.onbinary = function (stream) { 
3 | 	log.info('Client Streamed : ' + stream.toString()); 
4 | };
5 | 
6 | 7 |

8 | Create the instance that will process this inbound connection for stream. 9 |

-------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-header-links-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-header-links-bg.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-header-region-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/app-server-header-region-bg.gif -------------------------------------------------------------------------------- /components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-header-region-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/components/jaggery-admin/org.jaggeryjs.admin.styles/src/main/resources/web/styles/images/appserver-header-region-bg.gif -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/client/modules/addressing-1.6.1-wso2v11-20140310.185847-90.mar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/integration/tests-integration/src/test/resources/client/modules/addressing-1.6.1-wso2v11-20140310.185847-90.mar -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/client/modules/addressing-1.6.1-wso2v11-20140317.214549-105.mar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/integration/tests-integration/src/test/resources/client/modules/addressing-1.6.1-wso2v11-20140317.214549-105.mar -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/client/modules/addressing-1.6.1-wso2v11-20140320.162938-110.mar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/integration/tests-integration/src/test/resources/client/modules/addressing-1.6.1-wso2v11-20140320.162938-110.mar -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/client/modules/addressing-1.6.1-wso2v11-20140327.185840-124.mar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/integration/tests-integration/src/test/resources/client/modules/addressing-1.6.1-wso2v11-20140327.185840-124.mar -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/client/modules/addressing-1.6.1-wso2v11-20140330.185935-130.mar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wso2/product-jaggery/HEAD/modules/integration/tests-integration/src/test/resources/client/modules/addressing-1.6.1-wso2v11-20140330.185935-130.mar -------------------------------------------------------------------------------- /apps/ROOT/config/apis/request.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "request", 3 | "label": "request", 4 | "category1": "Built-ins", 5 | "category2" : "Variables", 6 | "overview": "Object that provides the properties and functions of HTTP Request", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/session.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "session", 3 | "label": "session", 4 | "category1": "Built-ins", 5 | "category2" : "Variables", 6 | "overview": "Object that provides the properties and functions of HTTP Session.", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/wsstub.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "wsstub", 3 | "label": "WSStub", 4 | "category1": "Add-ons", 5 | "category2" : "Web Services", 6 | "overview": "WSStub provides a web service client from a given WSDL", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/request.jag: -------------------------------------------------------------------------------- 1 | <% 2 | print(""); 3 | print("Method : " + request.getMethod() + "
"); 4 | print("Protocol : " + request.getProtocol() + "
"); 5 | print("User-Agent : " + request.getHeader("User-Agent")); 6 | print(""); 7 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/examples/wsstub.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var ws = require('ws'); 3 | var stub = new ws.WSStub('http://stratoslive.wso2.com/services/Version?wsdl'); 4 | var getVersion = stub.services['Version'].operations['getVersion']; 5 | 6 | print(getVersion.request(null)); 7 | %> -------------------------------------------------------------------------------- /apps/ROOT/tryitframe.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var caramel; 3 | caramel = require('caramel'); 4 | 5 | var api = request.getParameter('api'); 6 | var source = require('/modules/loader.js').loadExamples(api); 7 | 8 | caramel.render({ 9 | 10 | 'body' : {source:source} 11 | 12 | }); 13 | %> 14 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/file.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "file", 3 | "label": "File", 4 | "category1": "Built-ins", 5 | "category2" : "File System", 6 | "overview": "The File object is meant to provide file storage/manipulation functionality.", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/response.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "response", 3 | "label": "response", 4 | "category1": "Built-ins", 5 | "category2" : "Variables", 6 | "overview": "Object that provides the properties and functions of HTTP Response.", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/webSocket/ontext.hbs: -------------------------------------------------------------------------------- 1 |
2 | webSocket.ontext = function (data) { 
3 | 	log.info('Client sent : ' + data);
4 | };
5 | 
6 | 7 |

8 | Create the instance that will process this inbound connection for text and allow to handle a GET request. 9 |

-------------------------------------------------------------------------------- /apps/ROOT/config/apis/process.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "process", 3 | "label": "Process", 4 | "category1": "Add-ons", 5 | "category2" : "Server", 6 | "overview": "process allow to access to externally defined properties and environment variables", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/links.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.links[i]
 3 | 
4 |

5 | Returns the i th location of the feed. 6 |

7 |
 8 | feed.links = ["link1","link2"];
 9 | 
10 |

11 | Setting locations of the feed. 12 |

13 | 14 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/application.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "application", 3 | "label": "application", 4 | "category1": "Built-ins", 5 | "category2" : "Variables", 6 | "overview": "Object that holds properties which are global to the entire application.", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/entries.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.entries;
 3 | 
4 |

5 | 6 | Returns the complete set of entries contained in this feed. 7 |

8 |
 9 | feed.entries = entryList;
10 | 
11 |

setting an entry list for to feed.

-------------------------------------------------------------------------------- /apps/ROOT/config/properties/file/getStream.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var file = new File("readme.txt");
 3 | file.open("r");
 4 | print(file.getStream());
 5 | file.close();
 6 | 
7 | 8 |

9 | Can retrieve the input stream of a file 10 |

11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/jagconf.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "jagconf", 3 | "label": "jaggery.conf", 4 | "category1": "Add-ons", 5 | "category2" : "Configuration File", 6 | "overview": "Jaggery configuration file specifies the application specific configurations", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/oauth.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "oauth", 3 | "label": "OAuthProvider", 4 | "category1": "Add-ons", 5 | "category2" : "Authentication", 6 | "overview": "OAuthProvider api act as an oauth client for accessing resources protected by OAuth", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/require.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var core = require("core"); 3 | var log = new core.Log(); 4 | log.info("Required the module"); 5 | 6 | function myFunc() { 7 | var ws = require("ws"); 8 | var client = new ws.WSRequest(); 9 | log.info("Required within a function"); 10 | } 11 | %> 12 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/jslider.round.plastic.css: -------------------------------------------------------------------------------- 1 | 2 | .jslider_round_plastic .jslider-bg i, 3 | .jslider_round_plastic .jslider-pointer { background-image: url(../img/jslider.round.plastic.png); } 4 | 5 | .jslider_round_plastic .jslider-pointer { width: 18px; height: 18px; top: -7px; margin-left: -8px; } 6 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/collection/addPropertynamevalue.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var dataStore = new MetadataStore("admin", "admin");
 3 | var collection = dataStore.newCollection();
 4 | collection.addProperty("company", "WSO2");
 5 | 
6 | 7 |

8 | adding property for collection 9 |

10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/resource/addPropertynamevalue.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var dataStore = new MetadataStore("admin", "admin");
 3 | var resource = dataStore.newResource();
 4 | resource.addProperty("company", "WSO2");
 5 | 
6 | 7 |

8 | adding property for resource 9 |

10 | 11 | 12 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/sidebar-tools.hbs: -------------------------------------------------------------------------------- 1 | 11 | 12 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/sidebar-tryit.hbs: -------------------------------------------------------------------------------- 1 | 11 | 12 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/metadatastore.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "metadatastore", 3 | "label": "MetadataStore", 4 | "category1": "Built-ins", 5 | "category2" : "Data Storage", 6 | "overview": "This enables data manipulation through registry (metadata store) resources.", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/logo.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.logo
 3 | 
4 |

5 | Returns the logo of this feed. 6 |

7 |
 8 | feed.logo = "http://abc.blogspot.com/Blogger-logo.png"; 
 9 | 
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/file/del.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var path = "/foo.txt";
 3 | var file = new File(path);
 4 | print(file.del());
 5 | 
6 | 7 |

8 | Deletes this file from the file system. Returns true or false depending on the success. 9 |

10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/webSocket/sendStringtextStreamstream.hbs: -------------------------------------------------------------------------------- 1 |

2 | Optional HTTP headers. 3 |

4 |
 5 | { 
 6 | 	"Content-Type": "application/json", 
 7 | 	"User-Agent": "Mozilla/5.0", 
 8 | 	"Cookie": "JSESSIONID=4DA02FE19BA086964227"
 9 | }
10 | 
11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/icon.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.icon
 3 | 
 4 | 
5 |

6 | Returns the icon URL of this feed. 7 |

8 |
 9 | feed.icon = "http://abc.blogspot.com/RSS_Feed_Button.jpg";
10 | 
11 |

12 | Setting icon URL of this feed. 13 |

14 | 15 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/request/getAllCookies.hbs: -------------------------------------------------------------------------------- 1 |
 2 | request.getAllCookies()
 3 | 
4 | 5 |

6 | Returns an object with cookies. 7 |

8 | 9 |
10 | { 
11 | 	"user" : { "name": "user", ..... }, 
12 | 	"remember" : { "name": "remember", ..... }
13 | }
14 | 
-------------------------------------------------------------------------------- /apps/ROOT/config/apis/resource.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "resource", 3 | "label": "Resource", 4 | "category1": "Built-ins", 5 | "category2" : "Data Storage", 6 | "overview": "Store any type of data or metadata as resources including contracts, models, workflows, documents and more", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/server2.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var carbon = require('carbon'); 3 | 4 | print(carbon.server.address('http')); 5 | print('
'); 6 | print(carbon.server.tenantDomain()); 7 | print('
'); 8 | print(carbon.server.tenantId()); 9 | print('
'); 10 | print(carbon.server.tenantUser('admin')); 11 | print('
'); 12 | 13 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/file/openrrwwaa.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var file = new File("readme.txt");
 3 | file.open("r+"); 
 4 | file.close();
 5 | 
6 | 7 |

8 | File can be opened for read(r), write(w), append(a), read+write(r+), write+read(w+), append+read(a+) 9 |

10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/html.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "html", 3 | "label": "<% %>", 4 | "category1": "Basic Syntax", 5 | "overview": "<% %> are the escaping characters for Jaggery. All the server-side code need to be wrapped by these escape characters, so that they will execute correctly in the server.", 6 | "deprecated" : false, 7 | "tryit": true 8 | } 9 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/urimatcher.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var uriMatcher = new URIMatcher(request.getRequestURI()); 3 | 4 | //Provide a pattern to be matched against the URL 5 | if(uriMatcher.match('/{dir0}/{page}')) { 6 | //If pattern matches, elements can be accessed from their keys 7 | print("dir0 element is : " + uriMatcher.elements().dir0) 8 | } 9 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/file/moveStringtargetFileName.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var path = "/foo.txt";
 3 | var file = new File(path);
 4 | file.move("/bar.txt");
 5 | 
6 | 7 |

8 | Move the file to the given target file. Returns True if the file was successfully moved. 9 |

10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/Log.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "Log", 3 | "label": "Log", 4 | "category1": "Built-ins", 5 | "category2" : "Output", 6 | "overview": "The Log class will log errors, warning and information to the Jaggery console. It will mostly help when debugging your scripts.", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/include.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "include", 3 | "label": "include()", 4 | "category1": "Built-ins", 5 | "category2" : "Utils", 6 | "overview": "include() can include external jaggery scripts to the working script
include(path)
", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/authors.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.category[i]
 3 | 
4 |

5 | Returns the i th category of the feed. 6 |

7 |
 8 | feed.category = ["cat1","cat2"];
 9 | 
10 |

11 | Setting an array of categories to the feed. 12 |

13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/updated.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.updated
 3 | 
4 |

5 | Returns the last updated date of the feed. 6 |

7 |
 8 | var d1 = new Date("March 13, 2013 11:13:00")
 9 | feed.updated = d1;
10 | 
11 |

12 | Setting the last updated date of the feed. 13 |

14 | 15 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/file/saveAsStringtargetLocation.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var path = "/foo.txt";
 3 | var file = new File(path);
 4 | file.saveAs("/newFile.txt");
 5 | 
6 | 7 |

8 | Save the file to the given target file. Returns True if the file was successfully moved. 9 |

10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/sidebar-about.hbs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/sample/chatroom/css/chat-room.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 40px; 3 | padding-bottom: 40px; 4 | background-color: #f5f5f5; 5 | } 6 | 7 | #console { 8 | height: 400px; 9 | } 10 | 11 | #content { 12 | width: 100%; 13 | height: 34px; 14 | } 15 | 16 | #send { 17 | width: 100%; 18 | } 19 | h1{ 20 | letter-spacing: -2px; 21 | } 22 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/xhr.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "xhr", 3 | "label": "XMLHTTPRequest", 4 | "category1": "Built-ins", 5 | "category2" : "Http Client", 6 | "overview": "XMLHttpRequest provides the functionality of server side XML HTTP communication. This follows the W3C XMLHttpRequest specification.", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/application.jag: -------------------------------------------------------------------------------- 1 | <% 2 | //Putting a property to the application context 3 | application.put('bar', {'name':'jaggery'}); 4 | 5 | print( 6 | //reading a property from application context 7 | application.get('bar') 8 | ); 9 | 10 | //Removing a property from application context 11 | application.remove('bar'); 12 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/apis/parse.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "parse", 3 | "label": "parse()", 4 | "category1": "Built-ins", 5 | "category2" : "Dataformats", 6 | "overview": "parse() takes a well-formed JSON String and returns the resulting JavaScript object.
var obj = parse(jsonString)
", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/print.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "print", 3 | "label": "print()", 4 | "category1": "Built-ins", 5 | "category2" : "Output", 6 | "overview": "

In-built function print() will write server-side output to the document.

print(str | obj)
", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/urimatcher.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "urimatcher", 3 | "label": "URIMatcher", 4 | "category1": "Built-ins", 5 | "category2" : "Utils", 6 | "overview": "URIMatcher provides the functionality of comparing a given uri with a template. This API function will be useful for REST service composition", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/feed/contributors.hbs: -------------------------------------------------------------------------------- 1 |
 2 | feed.contributors[i]
 3 | 
4 |

5 | Returns the i th contributor of the feed. 6 |

7 |
 8 | feed.contributors = ["cont1","cont2"];
 9 | 
10 |

11 | Setting an array of contributor to the feed. 12 |

13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /apps/coffeeshop/jaggery.conf: -------------------------------------------------------------------------------- 1 | { 2 | "displayName":"Coffee Shop", 3 | "welcomeFiles":["index.jag"], 4 | "urlMappings":[ 5 | { 6 | "url":"/orders/*", 7 | "path":"/controller/order.jag" 8 | }, 9 | { 10 | "url":"/payments/*", 11 | "path":"/controller/payment.jag" 12 | } 13 | 14 | ] 15 | } -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/gadget.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var gadget = require('gadget'); 3 | 4 | gadget.url = 'http://nuwanbando.com/ig/soa.xml'; 5 | 6 | gadget.prefs = { 7 | 'feed_url' : encodeURIComponent('http://soa-platform.blogspot.com/feeds/posts/default'), 8 | 'show_date' : '1', 9 | 'num_entries' : '10', 10 | } 11 | 12 | gadget.toHTML(); 13 | 14 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/renderers/index.js: -------------------------------------------------------------------------------- 1 | var render = function (theme, data, meta, require) { 2 | theme('1-column', { 3 | title: [ 4 | { partial:'title', context: data.title} 5 | ], 6 | nav: [ 7 | { partial:'nav', context: require('/helpers/nav.js').currentPage(data.nav)} 8 | ], 9 | body: [ 10 | { partial:'index'} 11 | ] 12 | }); 13 | }; 14 | 15 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/renderers/tryit.js: -------------------------------------------------------------------------------- 1 | var render = function (theme, data, meta, require) { 2 | theme('1-column', { 3 | title: [ 4 | { partial:'title', context: data.title} 5 | ], 6 | nav: [ 7 | { partial:'nav', context: require('/helpers/nav.js').currentPage(data.nav)} 8 | ], 9 | body: [ 10 | { partial:'tryit'} 11 | ] 12 | }); 13 | }; 14 | 15 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/xhr.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var url = 'http://jaggeryjs.org/apidocs/resources/home.jag'; 3 | var xhr = new XMLHttpRequest(); 4 | xhr.open("GET", url); 5 | xhr.setRequestHeader("user" , "madhuka"); 6 | xhr.send(); 7 | 8 | print("ReadyState : "+xhr.readyState); 9 | print("
ResponseStatus : "+xhr.status); 10 | print("
ResponseText : "+xhr.responseText); 11 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/apis/stringify.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "stringify", 3 | "label": "stringify()", 4 | "category1": "Built-ins", 5 | "category2" : "Dataformats", 6 | "overview": "stringify() takes a well-formed JavaScript Object and returns the resulting JSON string.
var str = stringify(jsObject)
", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/session.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var obj = { 3 | name : "wso2", 4 | cat : "software", 5 | address : { 6 | number : "59", 7 | address : "Flower Rd.", 8 | city : "Colombo 7" 9 | } 10 | }; 11 | session.put("wso2", obj); 12 | 13 | var o = session.get("wso2"); 14 | print(""); 15 | print(o); 16 | print(""); 17 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/file/close.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var file = new File("readme.txt");
 3 | file.open("r");
 4 | var x = file.readLine();
 5 | file.close();
 6 | file.open("a");
 7 | file.write("Hello world!");
 8 | file.close();
 9 | 
10 | 11 |

12 | Users are expected to close the file after reading, writing and appending to the file. 13 |

14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/footer2.hbs: -------------------------------------------------------------------------------- 1 |
2 | 15 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/put.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var param = request.getParameter('action'); 4 | if (param == "parameters") { 5 | var testJson = put("http://localhost:9763/testapp/jsonTest.jag?action=stringify", "", "json"); 6 | print(testJson); 7 | } else { 8 | var testJson = put("http://localhost:9763/testapp/jsonTest.jag"); 9 | print(testJson); 10 | } 11 | 12 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/request/getCookiename.hbs: -------------------------------------------------------------------------------- 1 |
 2 | request.getCookie(name)
 3 | 
4 | 5 |

6 | Returns a cookie object. 7 |

8 | 9 |
10 | { 
11 | 	"name": "user",
12 | 	"value": "ruchira",
13 | 	"domain": "jaggeryjs.org", 
14 | 	"maxAge": 100000, 
15 | 	"secure": true, 
16 | 	"path": "/", 
17 | 	"comment": "Authenticated user"
18 | }
19 | 
20 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/sender/Sender.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var sender = new email.Sender("smtp.example.com", "25", "username@example.com", "password"); 
 3 | 
4 | 5 |
 6 | var sender = new email.Sender("smtp.gmail.com", "25", "username@gmail.com", "password", "tls");
 7 | 
8 | 9 |

10 | Adding "tls" as the fifth argument will enable TLS for the communication 11 |

-------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/delet.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var param = request.getParameter('action'); 4 | if (param == "parameters") { 5 | var testJson = del("http://localhost:9763/testapp/jsonTest.jag?action=stringify", null, "json"); 6 | print(testJson); 7 | } else { 8 | var testJson = del("http://localhost:9763/testapp/jsonTest.jag"); 9 | print(testJson); 10 | } 11 | 12 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/js/i18n/elrte.en.js: -------------------------------------------------------------------------------- 1 | /* 2 | * This is dummy file and does nothing. 3 | * 4 | * You do not need to include it for English localization. 5 | * 6 | * Translators! 7 | * If you want to make new localization use 'elrte.YOUR_LANG.js' file 8 | * in this directory as template. 9 | * Please submit your localization by creating new issue: 10 | * http://elrte.org/redmine/projects/elrte/issues/new 11 | */ 12 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/get.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var param = request.getParameter('action'); 4 | if (param == "parameters") { 5 | var testJson = get("http://localhost:9763/testapp/jsonTest.jag", "?action=stringify", "json"); 6 | print(testJson); 7 | } else { 8 | var testJson = get("http://localhost:9763/testapp/jsonTest.jag", null, "json"); 9 | print(testJson); 10 | } 11 | 12 | %> -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/post.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var param = request.getParameter('action'); 4 | if (param == "parameters") { 5 | var testJson = post("http://localhost:9763/testapp/jsonTest.jag?action=stringify", "", "json"); 6 | print(testJson); 7 | } else { 8 | var testJson = post("http://localhost:9763/testapp/jsonTest.jag", null, "json"); 9 | print(testJson); 10 | } 11 | 12 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/renderers/about.js: -------------------------------------------------------------------------------- 1 | var render = function (theme, data, meta, require) { 2 | theme('2-columns', { 3 | title: [ 4 | { partial:'title', context: data.title} 5 | ], 6 | nav: [ 7 | { partial:'nav', context: require('/helpers/nav.js').currentPage(data.nav)} 8 | ], 9 | sidebar: [ 10 | { partial:'sidebar-about'} 11 | ], 12 | body: [ 13 | { partial:'about'} 14 | ] 15 | }); 16 | }; 17 | 18 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/wsstub.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var ws = require('ws'); 4 | var stub = new ws.WSStub('http://localhost:9960/ws/mock?wsdl'); 5 | var addInt = stub.services['MockService'].operations['addInt']; 6 | var payload = '13'; 7 | 8 | print(addInt.request(payload)); 9 | 10 | %> 11 | -------------------------------------------------------------------------------- /apps/sample/ws/server.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var log = new Log(); 3 | webSocket.ontext = function (data) { 4 | log.info('Client Sent : ' + data); 5 | var ws = this; 6 | setTimeout(function () { 7 | var currentdate = new Date(); 8 | ws.send("Server Receive message "+data+" on "+currentdate); 9 | }, 5000); 10 | }; 11 | 12 | webSocket.onbinary = function (stream) { 13 | log.info('Client Streamed : ' + stream.toString()); 14 | }; 15 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/sender/to.hbs: -------------------------------------------------------------------------------- 1 |
 2 | sender.to = "nuwan@wso2.com"; 
 3 | 
4 | 5 |
 6 | var to = new Array();
 7 | to[0] = "nuwan@wso2.com";
 8 | to[1] = "teague@wso2.com";
 9 | sender.to = to; 
10 | 
11 | 12 |

13 | This is a required property that denotes the "to" address of the email to be sent. (Optionally an array of Strings denoting the "to" addresses can be passed as above.) 14 |

-------------------------------------------------------------------------------- /apps/ROOT-old/css/simple-hint.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-completions { 2 | position: absolute; 3 | z-index: 10; 4 | overflow: hidden; 5 | -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2); 6 | -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2); 7 | box-shadow: 2px 3px 5px rgba(0,0,0,.2); 8 | } 9 | .CodeMirror-completions select { 10 | background: #fafafa; 11 | outline: none; 12 | border: none; 13 | padding: 0; 14 | margin: 0; 15 | font-family: monospace; 16 | } 17 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/helpers/tryit.js: -------------------------------------------------------------------------------- 1 | var resources = function (page, meta) { 2 | return { 3 | js: ['codemirror.js', 'simple-hint.js', 'javascript-hint.js', 'xml.js', 'javascript.js', 'css.js', 'htmlmixed.js', 'htmlembedded.js', 'jaggery-hint-api.js', 'jaggery.js', 'google-code-prettify/prettify.js', 'tryit.jag', 'util.js', 'tryit.js'], 4 | css: ['codemirror.css', 'simple-hint.css', 'tomorrow.css', 'ambiance.css'], 5 | code: [] 6 | }; 7 | }; 8 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/database.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var db = new Database("jdbc:h2:demo", "admin", "admin"); 3 | 4 | db.query("DROP TABLE demo IF EXISTS"); 5 | db.query("CREATE TABLE demo(name varchar(255), address varchar(255))"); 6 | 7 | db.query("INSERT INTO demo VALUES(1, 'WSO2'), (2, '59 Flower Rd');"); 8 | 9 | var result = db.query("SELECT * FROM demo"); 10 | 11 | print(result); 12 | %> -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/jaggery.conf: -------------------------------------------------------------------------------- 1 | { 2 | "displayName":"Jaggery Tests", 3 | "welcomeFiles":["index.jag", "index.html"], 4 | "errorPages": 5 | { 6 | "404":"/404.jag" 7 | } 8 | , 9 | "urlMappings":[ 10 | { 11 | "url":"/uri/*", 12 | "path":"/uri.jag" 13 | },{ 14 | "url":"/test/request/*", 15 | "path":"/request.jag" 16 | }] 17 | } -------------------------------------------------------------------------------- /apps/ROOT/config/properties/sender/bcc.hbs: -------------------------------------------------------------------------------- 1 |
 2 | sender.bcc = "jhon@wso2.com";
 3 | 
4 | 5 |
 6 | var bcc = new Array();
 7 | bcc[0] = "jonathan@wso2.com";
 8 | bcc[1] = "nuwan@wso2.com";
 9 | sender.bcc = bcc;
10 | 
11 | 12 |

13 | This is an optional property that denotes the "bcc" address of the email to be sent. (Optionally an array of Strings denoting the "bcc" addresses can be passed as below.) 14 |

-------------------------------------------------------------------------------- /apps/ROOT/config/properties/sender/cc.hbs: -------------------------------------------------------------------------------- 1 |
 2 | sender.cc = "madhuka@wso2.com"; 
 3 | 
4 | 5 |
 6 | var cc = new Array();
 7 | cc[0] = "nuwan@wso2.com";
 8 | cc[1] = "teague@wso2.com";
 9 | sender.cc= cc; 
10 | 
11 | 12 |

13 | This is an optional property that denotes the "cc" address of the email to be sent. (Optionally an array of Strings denoting the "cc" addresses can be passed as above.) 14 |

15 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/footer.hbs: -------------------------------------------------------------------------------- 1 |
2 | 18 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/java/org/wso2/jaggery/integration/tests/wsmock/MockServicePublisher.java: -------------------------------------------------------------------------------- 1 | package org.wso2.jaggery.integration.tests.wsmock; 2 | 3 | import javax.xml.ws.Endpoint; 4 | 5 | public class MockServicePublisher { 6 | 7 | public static void main(String[] args) { 8 | 9 | Endpoint.publish("http://localhost:9960/ws/mock", new MockServiceImpl()); 10 | System.out.println("Server is published!"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/includeonce.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "includeonce", 3 | "label": "include_once()", 4 | "category1": "Built-ins", 5 | "category2" : "Utils", 6 | "overview": "include_once() can include external jaggery scripts to the working script once. This will limit the number of times a file will be included to once, therefor reducing duplications.
include_once(path)
", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/simple-hint.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-completions { 2 | position: absolute; 3 | z-index: 10; 4 | overflow: hidden; 5 | -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2); 6 | -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2); 7 | box-shadow: 2px 3px 5px rgba(0,0,0,.2); 8 | } 9 | .CodeMirror-completions select { 10 | background: #fafafa; 11 | outline: none; 12 | border: none; 13 | padding: 0; 14 | margin: 0; 15 | font-family: monospace; 16 | } 17 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/renderers/editor.js: -------------------------------------------------------------------------------- 1 | var render = function (theme, data, meta, require) { 2 | theme('2-columns', { 3 | title: [ 4 | { partial:'title', context: data.title} 5 | ], 6 | nav: [ 7 | { partial:'nav', context: require('/helpers/nav.js').currentPage(data.nav)} 8 | ], 9 | sidebar: [ 10 | { 11 | partial:'sidebar-tools', context: data.sidebar} 12 | ], 13 | body: [ 14 | { partial:'editor'} 15 | ] 16 | }); 17 | }; 18 | 19 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/renderers/tools.js: -------------------------------------------------------------------------------- 1 | var render = function (theme, data, meta, require) { 2 | theme('2-columns', { 3 | title: [ 4 | { partial:'title', context: data.title} 5 | ], 6 | nav: [ 7 | { partial:'nav', context: require('/helpers/nav.js').currentPage(data.nav)} 8 | ], 9 | sidebar: [ 10 | { 11 | partial:'sidebar-tools', context: data.sidebar} 12 | ], 13 | body: [ 14 | { partial:'tools'} 15 | ] 16 | }); 17 | }; 18 | 19 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/jsonTest.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var param = request.getParameter('action'); 4 | var reqType = request.getMethod(); 5 | if (param == "stringify") { 6 | var myJson = {}; 7 | myJson.name = "Test parameters"; 8 | myJson.type = reqType; 9 | print(stringify(myJson)); 10 | } else { 11 | var jsonString = '[{"type":"' + reqType + '", "name":"Test"}]'; 12 | print(parse(jsonString)); 13 | } 14 | 15 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/xhr/readyState.hbs: -------------------------------------------------------------------------------- 1 |

2 | Retrieves the friendly HTTP status of the request. Holds the status of the XMLHttprequest. Changes from 0 to 4 3 |

4 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/renderers/debugger.js: -------------------------------------------------------------------------------- 1 | var render = function (theme, data, meta, require) { 2 | theme('2-columns', { 3 | title: [ 4 | { partial:'title', context: data.title} 5 | ], 6 | nav: [ 7 | { partial:'nav', context: require('/helpers/nav.js').currentPage(data.nav)} 8 | ], 9 | sidebar: [ 10 | { 11 | partial:'sidebar-tools', context: data.sidebar} 12 | ], 13 | body: [ 14 | { partial:'debugger'} 15 | ] 16 | }); 17 | }; 18 | 19 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/renderers/samples.js: -------------------------------------------------------------------------------- 1 | var render = function (theme, data, meta, require) { 2 | theme('2-columns', { 3 | title: [ 4 | { partial:'title', context: data.title} 5 | ], 6 | nav: [ 7 | { partial:'nav', context: require('/helpers/nav.js').currentPage(data.nav)} 8 | ], 9 | sidebar: [ 10 | { 11 | partial:'sidebar-samples', context: data.sidebar} 12 | ], 13 | body: [ 14 | { partial:'samples'} 15 | ] 16 | }); 17 | }; 18 | 19 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/java/org/wso2/jaggery/integration/tests/wsmock/MockService.java: -------------------------------------------------------------------------------- 1 | package org.wso2.jaggery.integration.tests.wsmock; 2 | 3 | import javax.jws.WebMethod; 4 | import javax.jws.WebService; 5 | import javax.jws.soap.SOAPBinding; 6 | import javax.xml.ws.BindingType; 7 | 8 | @WebService 9 | public interface MockService { 10 | 11 | @WebMethod 12 | int addInt(int i, int j); 13 | 14 | @WebMethod 15 | void error(); 16 | } 17 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/jagconf/securityConstraints.hbs: -------------------------------------------------------------------------------- 1 |
 2 | "securityConstraints": [{
 3 |     "securityConstraint": {
 4 |         "webResourceCollection": {
 5 |             "name": "foo",
 6 |             "urlPatterns": ["/bar/*"],
 7 |             "methods": ["GET", "POST", "PUT", "DELETE"]
 8 |         },
 9 |         "authRoles": ["admin"]
10 |     }
11 | }]
12 | 
13 |

specifys security constraint for a certain web resource (jaggery file/directory etc).

-------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/helpers/tryitframe.js: -------------------------------------------------------------------------------- 1 | var resources = function (page, meta) { 2 | return { 3 | js: ['codemirror.js', 'simple-hint.js', 'javascript-hint.js', 'xml.js', 'javascript.js', 'css.js', 'htmlmixed.js', 'htmlembedded.js', 'jaggery-hint-api.js', 'jaggery.js', 'google-code-prettify/prettify.js', 'tryit.jag', 'util.js', 'tryit.js'], 4 | css: ['codemirror.css', 'simple-hint.css', 'tomorrow.css', 'ambiance.css', 'tryitframe.css'], 5 | code: [] 6 | }; 7 | }; 8 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/renderers/quickstart.js: -------------------------------------------------------------------------------- 1 | var render = function (theme, data, meta, require) { 2 | theme('2-columns', { 3 | title: [ 4 | { partial:'title', context: data.title} 5 | ], 6 | nav: [ 7 | { partial:'nav', context: require('/helpers/nav.js').currentPage(data.nav)} 8 | ], 9 | sidebar: [ 10 | { 11 | partial:'sidebar-quickstart', context: data.sidebar} 12 | ], 13 | body: [ 14 | { partial:'quickstart'} 15 | ] 16 | }); 17 | }; 18 | 19 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/ws.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "ws", 3 | "label": "WSRequest", 4 | "category1": "Add-ons", 5 | "category2" : "Web Services", 6 | "overview": "The WSRequest object is similar to the XMLHTTPRequest object. It's usage typically involves specifying the endpoint address and setting up options on how to frame the message, invoking the operation with a specific XML payload, and then checking and extracting information from the result.", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/include.json: -------------------------------------------------------------------------------- 1 | { 2 | "sections": [ 3 | { 4 | "title": "Parameters", 5 | "columns": ["Parameter", "Type", "Description"], 6 | "rows": [ 7 | { 8 | "Parameter": "path", 9 | "Type": "String", 10 | "Description": "
include(\"header.jag\");
Path to the jaggery script " 11 | } 12 | ] 13 | } 14 | ] 15 | } -------------------------------------------------------------------------------- /apps/ROOT/config/properties/includeonce.json: -------------------------------------------------------------------------------- 1 | { 2 | "sections": [ 3 | { 4 | "title": "Parameters", 5 | "columns": ["Parameter", "Type", "Description"], 6 | "rows": [ 7 | { 8 | "Parameter": "path", 9 | "Type": "String", 10 | "Description": "
include_once(\"header.jag\");
Path to the jaggery script " 11 | } 12 | ] 13 | } 14 | ] 15 | } -------------------------------------------------------------------------------- /apps/ROOT/config/examples/feed.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var blogURL = "http://madhukaudantha.blogspot.com/feeds/posts/default"; 3 | var feed= new Feed(blogURL); 4 | 5 | print("Feed Title : " + feed.title + "
"); 6 | print("Feed author is : " + feed.authors[0] + "
"); 7 | 8 | print("First five entries are :
"); 9 | var entries = feed.entries; 10 | 11 | for(var i=0;i < 5; i++) { 12 | var entry = entries[i]; 13 | %> 14 | 15 | <%=entry.title%>
16 | 17 | <% 18 | } 19 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/examples/xml.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var employees= 3 | 4 | 5 | Tove 6 | 32 7 | 8 | 9 | Jani 10 | 26 11 | 12 | ; 13 | 14 | //or var employees= new XML("Tove32Jani26"); 15 | 16 | print("Toves age is - " + employees.person.(name == "Tove").age); 17 | %> -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/i18n.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var i18n = require("i18n"); 3 | i18n.init(request); 4 | var test = request.getParameter('test'); 5 | if (test == 'fallback') { 6 | print(i18n.localize('goodbay', 'fallback')); 7 | } else if (test == 'in-json') { 8 | print(i18n.localize('greet')); 9 | } else if (test == 'in-json-default-only') { 10 | print(i18n.localize('company')); 11 | } else if (test == 'not-in-json') { 12 | print(i18n.localize('new')); 13 | } 14 | %> 15 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/collection.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var dataStore = new MetadataStore("admin", "admin"); 3 | var collection = dataStore.newCollection(); 4 | dataStore.put("wso2products", collection); 5 | //creating resource and adding it to collection 6 | var resource = dataStore.newResource(); 7 | dataStore.put("wso2products/jaggery.xml", resource); 8 | 9 | //now we reading from collection 10 | var res = dataStore.get("wso2products"); 11 | print(res.getChildren()); 12 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/examples/entry.jag: -------------------------------------------------------------------------------- 1 | <% 2 | //creating entries for feed 3 | var entry = new Entry(); 4 | entry.title = "Jaggery Sample Entry"; 5 | entry.content = "This is content for a sample atom entry"; 6 | entry.authors = ["wso2", "Jaggery"]; 7 | 8 | //creating list of entris 9 | var entries = new Array(); 10 | entries.push(entry); 11 | 12 | //creating feed 13 | var feed= new Feed(); 14 | //adding new entries for Feed 15 | feed.entries = entries; 16 | 17 | //printing the feed 18 | print(feed.toString()); 19 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/apis/get.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "get", 3 | "label": "get()", 4 | "category1": "Built-ins", 5 | "category2" : "Http Client", 6 | "overview": "get() is a wrapper for XMLHTTPRequest's GET method. using get() you can avoid the use of XHR and shorten the server-side get requests
get(url[, data][, headers][, type][, success(data, xhr)])
var res = get(url[, data][, headers][, type])
", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/metadatastore/resourceExistsStringpath.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var dataStore = new MetadataStore("username", "password");
 3 | boolean existance = dataStore.resourceExists("middleware/wso2/products");
 4 | 
5 | 6 |

7 | This method returns true or false depending on the existence of either a Resource or a Collection in the specified path. 8 |

9 |

10 | Above code returns true if a resource exists in the path /_system/governance/middleware/wso2/products. 11 |

12 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/xhr/openmethodurlasync.hbs: -------------------------------------------------------------------------------- 1 |
 2 | xhr.open(method,url,async);
 3 | 
4 |

5 | 6 | Specifies the type of request, the URL, whether the request should be handled asynchronously or not, and other optional attributes of a request. 7 |

8 | 20 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/renderers/documentation.js: -------------------------------------------------------------------------------- 1 | var render = function(theme, data, meta, require) { 2 | 3 | theme('2-columns', { 4 | title : [{ 5 | partial : 'title', 6 | context : data.title 7 | }], 8 | nav : [{ 9 | partial : 'nav', 10 | context : require('/helpers/nav.js').currentPage(data.nav) 11 | }], 12 | sidebar : [{ 13 | partial : 'sidebar-documentation', 14 | context : data.sidebar 15 | }], 16 | body : [{ 17 | partial : 'documentation', 18 | context : data.body 19 | }] 20 | }); 21 | }; 22 | 23 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/sender.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var content = request.getParameter("cont"); 4 | var to = request.getParameter("to"); 5 | var subject = request.getParameter("sub"); 6 | 7 | var email = require('email'); 8 | var sender = new email.Sender("smtp.gmail.com", "25", "username", "password", "tls"); 9 | 10 | sender.from = ""; 11 | sender.to = to; 12 | sender.cc = ""; 13 | sender.bcc = ""; 14 | sender.subject = subject; 15 | sender.text = content; 16 | sender.send(); 17 | 18 | print("email successfully sent to " + to); 19 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/apis/put.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "put", 3 | "label": "put()", 4 | "category1": "Built-ins", 5 | "category2" : "Http Client", 6 | "overview": "put() is a wrapper for XMLHTTPRequest's PUT method. using put() you can avoid the use of XHR and shorten the server-side PUT requests
put(url[, data][, type][, headers][, success(data, xhr)]) 
var res = put(url[, data][, type][, headers])
", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/email.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var content = "Test Content"; 4 | var to = "to@localhost.com"; 5 | var subject = "Test Subject"; 6 | 7 | var msg = require('email'); 8 | var email = new msg.Sender("localhost", "3025", "from@localhost.com", "frompw", "tls"); 9 | 10 | email.from = "from@localhost.com"; 11 | email.to = to; 12 | email.subject = subject; 13 | email.text = content; 14 | email.send(); 15 | 16 | print("email successfully sent"); 17 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/sender/html.hbs: -------------------------------------------------------------------------------- 1 |
 2 | sender.html = "<h1>Jaggery was Released on January 2012</h1>";
 3 | // Setthing the HTML content as a String 
 4 | 
5 | 6 |
 7 | sender.html = "<h1>Jaggery was Released on January 2012</h1>";
 8 | // Setting the HTML content as an XML object 
 9 | 
10 | 11 |

12 | An optional property to set the body of the email to be sent. This function can be used to send HTML mail. 13 |

14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/require.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "require", 3 | "label": "require()", 4 | "category1": "Basic Syntax", 5 | "overview": "In-built function require() allows to get a reference for any available Jaggery module. Adding a Jaggery module is detailed here. Apart from Jaggery modules, require() can import javascript(*.js) or JSON(*.json) files and assign it to a variable.
\nvar module = require(\"module_name\");\nvar js = require(\"foo.js\");\nvar json = require(\"bar.json\");
", 6 | "deprecated" : false, 7 | "tryit": false 8 | } 9 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/file/readAll.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var file = new File("readme.txt");
 3 | file.open("r");
 4 | print(file.readAll());
 5 | file.close();
 6 | 
7 | 8 |

9 | Reads all the content in the file and returns a String representation of the content. Users are required to open the file for reading before reading from the file. 10 |

11 | 12 |

13 | If the file is not open for either reading or writing or appending, then calling this will automatically open the file for reading. 14 |

15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/resource.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var dataStore = new MetadataStore("admin", "admin"); 3 | var resource = dataStore.newResource(); 4 | resource.content = "Hello Jaggery"; 5 | resource.addProperty("url", "http://wso2.com"); 6 | resource.addProperty("company", "WSO2 Inc."); 7 | dataStore.put("wso2products.xml", resource); 8 | //now we read the resource again 9 | var res = dataStore.get("wso2products.xml"); 10 | 11 | print("Company : "+res.getProperty("company")); 12 | print("
URL : " +res.getProperty("url")); 13 | print("
Content : "+res.content); 14 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/oauth/OAuthProviderprovider.hbs: -------------------------------------------------------------------------------- 1 |

Returns the OAuthProvider Object

2 |
 3 | var oauth = require("oauth");
 4 | var provider = {
 5 | 		"oauth_version": "1",
 6 | 		"authorization_url": "https://www.linkedin.com/uas/oauth/authorize",
 7 | 		"access_token_url": "https://api.linkedin.com/uas/oauth/accessToken",
 8 | 		"request_token_url": "https://api.linkedin.com/uas/oauth/requestToken",
 9 | 		"api_key": "API_KEY",
10 | 		"api_secret": "SECRET"
11 | }
12 | var linkedin = new oauth.OAuthProvider(provider);
13 | 
14 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/xml.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "xml", 3 | "label": "XML", 4 | "category1": "Built-ins", 5 | "category2" : "Dataformats", 6 | "overview": "XML is an API class in jaggery, and it provides the fucntionality of E4X for XML manipulation. more information about EX4 can be found at Mozilla Developer Network", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/webSocket.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "webSocket", 3 | "label": "webSocket", 4 | "category1": "Built-ins", 5 | "category2" : "Variables", 6 | "overview": "Jaggery websocket enables full duplex transmission and it supports WebSocket specification. It defines an API establishing \"socket\" connections between a web browser and a server. In Simple words, There is an persistent connection between the client and the server and both parties can start sending data at any time. (WSO2 ELB do not support webSocket)", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/server.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var log = new Log(); 4 | websocket.ontext = function(data) { 5 | log.info('Client Sent : ' + data); 6 | var ws = this; 7 | setTimeout(function() { 8 | ws.send(data); 9 | }, 100); 10 | }; 11 | 12 | websocket.onopen = function(data) { 13 | print('Open WS'); 14 | }; 15 | 16 | websocket.onclose = function(data) { 17 | print('Close WS') 18 | }; 19 | 20 | websocket.onbinary = function(stream) { 21 | log.info('Client Streamed : ' + stream.toString()); 22 | }; 23 | 24 | %> -------------------------------------------------------------------------------- /apps/ROOT-old/includes/tryit_but.jag: -------------------------------------------------------------------------------- 1 | 12 | 13 |

14 | 16 |

-------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/java/org/wso2/jaggery/integration/tests/wsmock/MockServiceImpl.java: -------------------------------------------------------------------------------- 1 | package org.wso2.jaggery.integration.tests.wsmock; 2 | 3 | import javax.jws.WebService; 4 | 5 | @WebService( 6 | serviceName = "MockService", 7 | endpointInterface = "org.wso2.jaggery.integration.tests.wsmock.MockService") 8 | public class MockServiceImpl implements MockService { 9 | 10 | @Override 11 | public int addInt(int i, int j) { 12 | return i + j; 13 | } 14 | 15 | @Override 16 | public void error() { 17 | throw new RuntimeException("Mock error"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/file/readintnumberOfCharacters.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var file = new File("readme.txt");
 3 | file.open("r");
 4 | var text = file.read(5);
 5 | print(text);
 6 | file.close();
 7 | 
8 | 9 |

10 | Reads the given number of characters from the file and returns a String representation of those characters. Users are required to open the file for reading before reading from the file. 11 |

12 |

13 | If the file is not open for either reading or writing or appending, then calling this will automatically open the file for reading. 14 |

15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/del.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "del", 3 | "label": "del()", 4 | "category1": "Built-ins", 5 | "category2" : "Http Client", 6 | "overview": "del() is a wrapper for XMLHTTPRequest's DELETE method. using del() you can avoid the use of XHR and shorten the server-side DELETE requests
del(url[, data][, type][, headers][, success(data, xhr)])
var data = {'key':'value'};\nvar headers = {'key', 'value'};\ndel(url, data, \"text\", headers, function (data, xhr) {\n\tlog(\"Response received\");\n});
", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/user.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var carbon = require('carbon'); 3 | var tenantId = -1234; 4 | var url = 'https://10.100.0.49:9443/admin/services/'; 5 | var server = new carbon.server.Server(url); 6 | var userManager = new carbon.user.UserManager(server, tenantId); 7 | var user = new carbon.user.User(userManager, 'admin'); 8 | 9 | print("Get claims of admin : "); 10 | print(user.getClaims('default')); 11 | print("
"); 12 | 13 | print("Get Roles of Admin : "); 14 | print(user.getRoles()); 15 | print("
"); 16 | 17 | var roles = ['admin']; 18 | 19 | print("Check user has roles : "); 20 | print(user.hasRoles(roles)); 21 | print("
"); 22 | %> -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/sidebar-samples.hbs: -------------------------------------------------------------------------------- 1 | 21 | 22 | -------------------------------------------------------------------------------- /apps/ROOT/config/examples/ws.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | function invokeGetVersion() { 4 | var log = new Log(); 5 | var ws = require('ws'); 6 | 7 | var version = new ws.WSRequest(); 8 | var options = new Array(); 9 | options.useSOAP = 1.2; 10 | options.useWSA = 1.0; 11 | options.action = "urn:getVersion"; 12 | var payload = null; 13 | var result; 14 | 15 | try { 16 | version.open(options, "http://stratoslive.wso2.com/services/Version", false); 17 | version.send(payload); 18 | result = version.responseE4X; 19 | } catch (e) { 20 | log.error(e.toString()); 21 | return e.toString(); 22 | } 23 | return result; 24 | } 25 | 26 | print(invokeGetVersion()); 27 | 28 | %> -------------------------------------------------------------------------------- /apps/ROOT-old/js/util.js: -------------------------------------------------------------------------------- 1 | TryitUtil = new function() { 2 | this.makeRequest = function(u, d, callback) { 3 | $.ajax({ 4 | type : "GET", 5 | url : u, 6 | data : d, 7 | dataType : "text", 8 | async : false, 9 | success : callback 10 | }); 11 | }; 12 | 13 | this.makePost = function(u, d, callback) { 14 | $.ajax({ 15 | type : "POST", 16 | url : u, 17 | data : d, 18 | dataType : "text", 19 | success : callback 20 | }); 21 | }; 22 | this.makeJsonRequest = function(u, d, callback) { 23 | $.ajax({ 24 | type : "GET", 25 | url : u, 26 | data : d, 27 | dataType : "json", 28 | success : callback 29 | }); 30 | }; 31 | } 32 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/i18n.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "i18n", 3 | "label": "i18n", 4 | "category1": "Add-ons", 5 | "category2" : "Internationalization", 6 | "overview": "i18n provides the ability to internationalize text in webapps
The content related to localization, need to be placed as json files with the name locale_{language_code}.json, i.e french locale file will be locale_fr.json The content is in JSON which will have simple key-vale pairs like follows.
{\n\"greetings.local\": \"Français - Démo de l10n.js\", \n\"info.local\": \"Vous lisez une localisation en français de cette page.\"\n}
", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/js/util.js: -------------------------------------------------------------------------------- 1 | TryitUtil = new function() { 2 | this.makeRequest = function(u, d, callback) { 3 | $.ajax({ 4 | type : "GET", 5 | url : u, 6 | data : d, 7 | dataType : "text", 8 | async : false, 9 | success : callback 10 | }); 11 | }; 12 | 13 | this.makePost = function(u, d, callback) { 14 | $.ajax({ 15 | type : "POST", 16 | url : u, 17 | data : d, 18 | dataType : "text", 19 | success : callback 20 | }); 21 | }; 22 | this.makeJsonRequest = function(u, d, callback) { 23 | $.ajax({ 24 | type : "GET", 25 | url : u, 26 | data : d, 27 | dataType : "json", 28 | success : callback 29 | }); 30 | }; 31 | } 32 | -------------------------------------------------------------------------------- /apps/ROOT/config/properties/file/writeObjectObject.hbs: -------------------------------------------------------------------------------- 1 |
 2 | var file = new File("readme.txt");
 3 | file.open("w");
 4 | file.write("Hello World!");
 5 | file.close(); 
 6 | 
7 | 8 | 9 |

10 | Writes the String representation of the object to the file. Users can open the file for writing from the start of the file or for appending to the end of the file. 11 |

12 |

13 | If the file is not already open for writing or appending, then calling this will automatically open the file for writing (overwriting the current content of the file if it exists). 14 |

15 |

16 | Throws an error if the file is already open for reading. 17 |

18 | 19 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/uri.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var uriMatcher = new URIMatcher(request.getRequestURI()); 4 | 5 | if (uriMatcher.match("/{dir0}/{page}")) { 6 | print("dir0 element is : " + uriMatcher.elements().dir0); 7 | print(" ,page element is : " + uriMatcher.elements().page); 8 | } 9 | 10 | if (uriMatcher.match("/{dir0}/{dir1}/{dir2}/{dir3}/")) { 11 | print("dir0 element is : " + uriMatcher.elements().dir0); 12 | print(" ,dir1 element is : " + uriMatcher.elements().dir1); 13 | print(" ,dir2 element is : " + uriMatcher.elements().dir2); 14 | print(" ,dir3 element is : " + uriMatcher.elements().dir3); 15 | 16 | } 17 | 18 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/examples/metadatastore.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var dataStore = new MetadataStore("admin", "admin"); 3 | var resource = dataStore.newResource(); 4 | resource.content = "Hello Jaggery"; 5 | resource.addProperty("url", "http://wso2.com"); 6 | resource.addProperty("company", "WSO2 Inc."); 7 | dataStore.put("wso2products.xml", resource); 8 | 9 | //now we read the resource again 10 | var res = dataStore.get("wso2products.xml"); 11 | 12 | //html to show the result 13 | var resource = {}; 14 | resource.content = res.content.toXMLString(); 15 | resource.props = {}; 16 | resource.props.url = res.getProperty("url"); 17 | resource.props.company = res.getProperty("company"); 18 | 19 | print(resource); 20 | %> -------------------------------------------------------------------------------- /apps/ROOT-old/includes/footer.jag: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/ROOT/config/apis/rdb.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "rdb", 3 | "label": "Database", 4 | "category1": "Built-ins", 5 | "category2" : "Data Storage", 6 | "overview": "The Database Object is used to connect to a relational database through jaggery and provides most of the default functionality and manipulation through the below members/functions. Jaggery out of the box support H2 database engine, and with little configuration supports MySql and Oracle.
In-order to connect to other database engines, you need to place the connector libs (MySql lib, Oracle lib) into Jaggery runtime. you can copy these files to {JAGGERY_HOME}/carbon/repository/components/lib/", 7 | "deprecated" : false, 8 | "tryit": false 9 | } 10 | -------------------------------------------------------------------------------- /apps/shout/js/flexcrollstyles.css: -------------------------------------------------------------------------------- 1 | /* Scroll Bar Master Styling Starts Here */ 2 | /* All comments can be freely removed from the css */ 3 | 4 | .scrollgeneric { 5 | line-height: 1px; 6 | font-size: 1px; 7 | position: absolute; 8 | top: 0; left: 0; 9 | } 10 | 11 | .vscrollerbase { 12 | width: 10px; 13 | background-color: white; 14 | } 15 | .vscrollerbar { 16 | width: 10px; 17 | background-color: lightgray; 18 | } 19 | .hscrollerbase { 20 | height: 10px; 21 | background-color: white; 22 | } 23 | .hscrollerbar { 24 | height: 10px; 25 | background-color: black; 26 | } 27 | 28 | .scrollerjogbox { 29 | width: 10px; 30 | height: 10px; 31 | top: auto; left: auto; 32 | bottom: 0px; right: 0px; 33 | background-color: gray; 34 | } -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/clientTester.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var param = request.getParameter('action'); 4 | print("Web Socket Client Tester : "); 5 | 6 | if (param == "start") { 7 | makeCall("start", 645, 695); 8 | } else if (param == "send") { 9 | makeCall("send", 650, 700); 10 | } else if (param == "close") { 11 | makeCall("close", 650, 702); 12 | } 13 | function makeCall(action, start, end) { 14 | var xhr = new XMLHttpRequest(); 15 | xhr.open("GET", "http://localhost:9763/testapp/client.jag?action=" + action); 16 | xhr.send(); 17 | var out = xhr.responseText.length 18 | print(start < out); 19 | print(out < end); 20 | print(start < out < end); 21 | } 22 | 23 | %> -------------------------------------------------------------------------------- /apps/ROOT-old/lib/bootstrap.less: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap @VERSION 3 | * 4 | * Copyright 2011 Twitter, Inc 5 | * Licensed under the Apache License v2.0 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Designed and built with all the love in the world @twitter by @mdo and @fat. 9 | * Date: @DATE 10 | */ 11 | 12 | // CSS Reset 13 | @import "reset.less"; 14 | 15 | // Core variables and mixins 16 | @import "variables.less"; // Modify this for custom colors, font-sizes, etc 17 | @import "mixins.less"; 18 | 19 | // Grid system and page structure 20 | @import "scaffolding.less"; 21 | 22 | // Styled patterns and elements 23 | @import "type.less"; 24 | @import "forms.less"; 25 | @import "tables.less"; 26 | @import "patterns.less"; -------------------------------------------------------------------------------- /apps/ROOT-old/includes/footerfunc.jag: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/helpers/nav.js: -------------------------------------------------------------------------------- 1 | var currentPage = function(data) { 2 | var currentPage = data.currentPage; 3 | 4 | var pages = [{ 5 | page : "About", 6 | url : "/about.jag" 7 | }, { 8 | page : "Quickstart", 9 | url : "/quickstart.jag" 10 | }, { 11 | page : "Documentation", 12 | url : "/documentation.jag" 13 | }, { 14 | page : "Tools", 15 | url : "/tools.jag" 16 | }, { 17 | page : "Samples", 18 | url : "/samples.jag" 19 | }, { 20 | page : "Try it!", 21 | url : "/tryit.jag" 22 | }]; 23 | 24 | for (i in pages) { 25 | 26 | if (pages[i].page.toLowerCase() == currentPage.toLowerCase()) { 27 | pages[i].active = true; 28 | break; 29 | } 30 | } 31 | 32 | return { 33 | pages : pages 34 | }; 35 | } 36 | -------------------------------------------------------------------------------- /apps/shout/500.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 500 Internal Server error 6 | 7 | 8 | 9 | 10 | 11 |
12 |

500

Server Error 13 | Oops! something went wrong here. Use this link to head back to home base 14 | 15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /apps/shout/404.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 404 File Not Found 6 | 7 | 8 | 9 | 10 | 11 |
12 |

404

Not Found 13 | The file you are looking for cannot be found. Use this link to head back to home base 14 | 15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/js/caramel-client.js: -------------------------------------------------------------------------------- 1 | (function (caramel) { 2 | 3 | /** 4 | * Resolves absolute paths by adding app context prefix. 5 | * @param path 6 | * @return {*} 7 | */ 8 | caramel.url = function (path) { 9 | return this.context + (path.charAt(0) !== '/' ? '/' : '') + path; 10 | }; 11 | 12 | caramel.get = function(path) { 13 | var args = Array.prototype.slice.call(arguments); 14 | args[0] = caramel.url(args[0]); 15 | return $.get.apply(this, args) 16 | }; 17 | 18 | caramel.post = function(path) { 19 | var args = Array.prototype.slice.call(arguments); 20 | args[0] = caramel.url(args[0]); 21 | return $.post.apply(this, args) 22 | }; 23 | 24 | })(caramel); -------------------------------------------------------------------------------- /apps/ROOT/config/properties/sender/addAttachmentStringfilePathFileHostObjectfile.hbs: -------------------------------------------------------------------------------- 1 |

2 | The current state of the object, which can be one of the following values: 3 |

4 | 22 |

23 | Of these, typically only the last (readyState == 4) is used. 24 |

-------------------------------------------------------------------------------- /apps/ROOT/config/examples/oauth.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var oauth = require("oauth"); 4 | var provider = { 5 | "oauth_version" : "1", 6 | "authorization_url" : "https://www.linkedin.com/uas/oauth/authorize", 7 | "access_token_url" : "https://api.linkedin.com/uas/oauth/accessToken", 8 | "request_token_url" : "https://api.linkedin.com/uas/oauth/requestToken", 9 | "api_key" : "API_KEY", 10 | "api_secret" : "SECRET" 11 | } 12 | var linkedin = new oauth.OAuthProvider(provider); 13 | print(linkedin.getAuthorizationUrl()); 14 | 15 | %> 16 | 17 | <% 18 | 19 | var accessToken = linkedin.getAccessToken("3741501"); 20 | var response = linkedin.sendOAuthRequest(accessToken, "GET", "http://api.linkedin.com/v1/groups/59053/posts?count=20&start=1&format=json"); 21 | print(response.getBody()); 22 | 23 | %> -------------------------------------------------------------------------------- /apps/shout/font/Google Android License.txt: -------------------------------------------------------------------------------- 1 | Copyright (C) 2008 The Android Open Source Project 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | 15 | ########## 16 | 17 | This directory contains the fonts for the platform. They are licensed 18 | under the Apache 2 license. 19 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/entry.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var param = request.getParameter('action'); 4 | var entry = new Entry(); 5 | entry.id = "1"; 6 | entry.title = "Jaggery Sample Entry"; 7 | entry.content = "This is content for a sample atom entry"; 8 | entry.authors = ["madhuka", "nuwan"]; 9 | entry.categories = ["js", "jaggery"]; 10 | entry.links = ["http://jaggeryjs.org/", "madhukaudantha.blogspot.com"]; 11 | entry.summary = "summary test" 12 | entry.rights = "rights list test" 13 | entry.contributors = ["madhuka", "nuwan", "ruchira"]; 14 | 15 | var entries = new Array(); 16 | entries.push(entry); 17 | 18 | var feed = new Feed(); 19 | feed.entries = entries; 20 | if (param == "xml") { 21 | print(feed.toXML()); 22 | } else { 23 | print(feed.toString()); 24 | } 25 | 26 | %> -------------------------------------------------------------------------------- /apps/shout/js/util.js: -------------------------------------------------------------------------------- 1 | ShoutAppUtil = new function() { 2 | this.makeRequest = function(u, d, callback) { 3 | $.ajax({ 4 | type: "GET", 5 | url: u, 6 | data: d, 7 | dataType: "text", 8 | success: callback 9 | }); 10 | }; 11 | 12 | this.makePost = function(u, d, callback) { 13 | $.ajax({ 14 | type: "POST", 15 | url: u, 16 | data: d, 17 | dataType: "text", 18 | success: callback 19 | }); 20 | }; 21 | this.makeJsonRequest = function(u, d, callback) { 22 | $.ajax({ 23 | type: "GET", 24 | url: u, 25 | data: d, 26 | dataType: "json", 27 | success: callback 28 | }); 29 | }; 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /apps/coffeeshop/model/paymentQuery.jag: -------------------------------------------------------------------------------- 1 | <% 2 | function isPaid(orderid) { 3 | 4 | var order = session.get("o" + orderid); 5 | if(order != null) { 6 | print(order.PAY); 7 | } else { 8 | print({ 9 | "Infor" : "Sorry, Order is not exsiting" 10 | }); 11 | } 12 | } 13 | 14 | function pay(orderid) { 15 | 16 | var order = session.get("o" + orderid); 17 | //checking order is there 18 | if(order != null) { 19 | //Order is existing 20 | if(order.PAY) { 21 | print({ 22 | "Infor" : "Sorry, Order was paid" 23 | }); 24 | } else { 25 | order.PAY = true; 26 | order.STATUS = "Complete"; 27 | session.put("o" + orderid, order); 28 | print(order); 29 | } 30 | } else { 31 | 32 | print({ 33 | "Infor" : "Sorry, Order is not exsiting" 34 | }); 35 | } 36 | 37 | } 38 | 39 | %> -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/collection.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var param = request.getParameter('action'); 4 | 5 | var dataStore = new MetadataStore("admin", "admin"); 6 | var collection = dataStore.newCollection(); 7 | dataStore.put("wso2products", collection); 8 | 9 | //creating resource and adding it to collection 10 | var resource = dataStore.newResource(); 11 | dataStore.put("wso2products/jaggery.xml", resource); 12 | dataStore.put("wso2products/AM.xml", resource); 13 | dataStore.put("wso2products/GS.xml", resource); 14 | 15 | //now we reading from collection 16 | var res = dataStore.get("wso2products"); 17 | if (param == "members") { 18 | 19 | print(res.childCount); 20 | dataStore.remove("wso2products"); 21 | } else { 22 | print(res.getChildren()); 23 | dataStore.remove("wso2products"); 24 | } 25 | 26 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/apis/post.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "post", 3 | "label": "post()", 4 | "category1": "Built-ins", 5 | "category2" : "Http Client", 6 | "overview": "post() is a wrapper for XMLHTTPRequest's POST method. Using post() you can avoid the use of XHR and shorten the serverside POST requests. If the Content-Type header is not specified, application/x-www-form-urlencoded; charset=UTF-8 will be set automatically.

Asynchronous Invocation

post(url[, data][, headers][, type][, success(data, xhr)])

Synchronous Invocation

var res = post(url[, data][, headers][, type])
Returned result contains the data and the XMLHttpRequest instance. { data: {}, xhr: {} }", 7 | "deprecated" : false, 8 | "tryit": true 9 | } 10 | -------------------------------------------------------------------------------- /apps/coffeeshop/controller/payment.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | include("../model/paymentQuery.jag"); 4 | response.contentType = 'text/javascript'; 5 | 6 | var verb = request.getMethod(); 7 | var orderid = request.getParameter('orderid'); 8 | var data = request.getContent(); 9 | 10 | var log = new Log(); 11 | var uri = request.getRequestURI(); 12 | var callPath=uri.replace("/coffeeshop/payments",""); 13 | var uriMatcher = new URIMatcher(callPath); 14 | 15 | if(uriMatcher.match("/{orderid}/")) { 16 | orderid = uriMatcher.elements().orderid; 17 | } 18 | if(data != null) { 19 | 20 | if(data.id != null) { 21 | orderid = parse(data).id; 22 | } 23 | } 24 | if(verb == "GET" && orderid != null){ 25 | //is paid for order 26 | isPaid(orderid); 27 | 28 | }else if (verb == "PUT" && orderid != null){ 29 | pay(orderid); 30 | } 31 | 32 | 33 | %> -------------------------------------------------------------------------------- /apps/ROOT-old/js/tryit.jag: -------------------------------------------------------------------------------- 1 | <% 2 | //This is a dynamic JavaScript file 3 | response.contentType = "application/javascript"; 4 | var context = request.getContextPath(); 5 | %> 6 | Tryit = new function () { 7 | var viewurl = "<%=context%>/tryit/tryit.jag"; 8 | this.call = function () { 9 | var arg = editor.getValue(); 10 | var qString = $('#qString').val(); 11 | var htmlResult; 12 | TryitUtil.makePost(viewurl, 13 | "inputstream=" + encodeURIComponent(arg) + "&" + qString, function (html) { 14 | htmlResult = html; 15 | $('#output').contents().find('html').html(htmlResult); 16 | }); 17 | }; 18 | this.test = function () { 19 | var xx = editor.getValue(); 20 | $('#output').html('

out' + arg + '

'); 21 | return arg; 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/sidebar-documentation.hbs: -------------------------------------------------------------------------------- 1 | 35 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/js/tryit.jag: -------------------------------------------------------------------------------- 1 | <% 2 | //This is a dynamic JavaScript file 3 | response.contentType = "application/javascript"; 4 | var context = request.getContextPath(); 5 | %> 6 | Tryit = new function () { 7 | var viewurl = "<%=context%>/tryit/tryit.jag"; 8 | this.call = function () { 9 | var arg = editor.getValue(); 10 | var qString = $('#qString').val(); 11 | var htmlResult; 12 | TryitUtil.makePost(viewurl, 13 | "inputstream=" + encodeURIComponent(arg) + "&" + qString, function (html) { 14 | htmlResult = html; 15 | $('#output').contents().find('html').html(htmlResult); 16 | }); 17 | }; 18 | this.test = function () { 19 | var xx = editor.getValue(); 20 | $('#output').html('

out' + arg + '

'); 21 | return arg; 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /issue_template.md: -------------------------------------------------------------------------------- 1 | **Description:** 2 | 3 | 4 | **Suggested Labels:** 5 | 6 | 7 | **Suggested Assignees:** 8 | 9 | 10 | **Affected Product Version:** 11 | 12 | **OS, DB, other environment details and versions:** 13 | 14 | **Steps to reproduce:** 15 | 16 | 17 | **Related Issues:** 18 | -------------------------------------------------------------------------------- /apps/ROOT/documentation.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var caramel, api, json, links, sections, examples, log, loader; 3 | caramel = require('caramel'); 4 | 5 | log = new Log(); 6 | loader = require('/modules/loader.js'); 7 | 8 | 9 | api = request.getParameter('api'); 10 | 11 | if(api){ 12 | json = require('/config/apis/' + api + '.json'); 13 | sections = loader.loadSections(api); 14 | examples = loader.loadExamples(api); 15 | } 16 | 17 | list = loader.getCategorizedAPIs(api); 18 | 19 | 20 | caramel.render({ 21 | 'title': {text :'Documentation'}, 22 | 'body' : { api : api, 23 | title:json && json.label , 24 | overview:json && json.overview, 25 | examples:examples, 26 | sections:sections, 27 | deprecated: json && json.deprecated, 28 | tryit: json && json.tryit 29 | }, 30 | 'nav' : {currentPage:'documentation'}, 31 | 'sidebar' : {list: list} 32 | }); 33 | %> 34 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/partials/sidebar-quickstart.hbs: -------------------------------------------------------------------------------- 1 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/css/jquery.rating.css: -------------------------------------------------------------------------------- 1 | /* jQuery.Rating Plugin CSS - http://www.fyneworks.com/jquery/star-rating/ */ 2 | div.rating-cancel,div.star-rating{float:left;width:17px;height:15px;text-indent:-999em;cursor:pointer;display:block;background:transparent;overflow:hidden} 3 | div.rating-cancel,div.rating-cancel a{background:url(../img/delete.gif) no-repeat 0 -16px} 4 | div.star-rating,div.star-rating a{background:url(../img/star.png) no-repeat 0 0px} 5 | div.rating-cancel a,div.star-rating a{display:block;width:16px;height:100%;background-position:0 0px;border:0} 6 | div.star-rating-on a{background-position:0 -16px!important} 7 | div.star-rating-hover a{background-position:0 -32px} 8 | /* Read Only CSS */ 9 | div.star-rating-readonly a{cursor:default !important} 10 | /* Partial Star CSS */ 11 | div.star-rating{background:transparent!important;overflow:hidden!important} 12 | /* END jQuery.Rating Plugin CSS */ -------------------------------------------------------------------------------- /apps/ROOT/config/properties/server.json: -------------------------------------------------------------------------------- 1 | { 2 | "sections": [ 3 | { 4 | "title": "Operations", 5 | "columns": ["Operation", "Returns", "Description"], 6 | "rows": [ 7 | { 8 | "Operation": "Server(options Object)", 9 | "Returns": "Object", 10 | "Description": "Following parameters should be passed to the constructor:

" 11 | },{ 12 | "Operation": "authenticate(username String, password String)", 13 | "Returns": "Boolean", 14 | "Description": "This method authenticated user using his password. It accepts the following parameters:

This returns 'true' if password authenticates username successfully and 'false' otherwise. " 15 | } 16 | ] 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /apps/ROOT/config/examples/jagconf.jag: -------------------------------------------------------------------------------- 1 | { 2 | "displayName": "Minimal Sample", 3 | "welcomeFiles": ["index.jag", "index.html"], 4 | "logLevel": "debug", 5 | "errorPages": [{ 6 | "errorCode": "500", 7 | "location": "/error1.html" 8 | }, { 9 | "errorCode": "404", 10 | "location": "/error.html" 11 | }], 12 | "securityConstraints": [{ 13 | "securityConstraint": { 14 | "webResourceCollection": { 15 | "name": "foo", 16 | "urlPatterns": ["/bar/*"], 17 | "methods": ["GET", "POST", "PUT", "DELETE"] 18 | }, 19 | "authRoles": ["admin"] 20 | } 21 | }], 22 | "loginConfig": { 23 | "authMethod": "BASIC" 24 | }, 25 | "securityRoles": ["admin", "everyone"], 26 | "urlMappings": [{ 27 | "url": "/sample/uri-mapping", 28 | "path": "/index.jag" 29 | }] 30 | } -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/js/core.js: -------------------------------------------------------------------------------- 1 | $(document).ready( 2 | function() { 3 | //autohidemode:false to show scrollbar 4 | var niceScrollDark = {cursorwidth:'6px', cursorcolor:'#313335', cursorborder:'1px solid #313335', styler:"fb"}; 5 | var niceScrollLight = {cursorwidth:'6px', cursorcolor:'#6D6D6D', cursorborder:'1px solid #6D6D6D', styler:"fb"}; 6 | 7 | 8 | var adjustSidebar = function(){ 9 | var main = $('.main'); 10 | var w = $(window).width(); 11 | if(w < 979){ 12 | main.removeClass('offset2'); 13 | } else { 14 | 15 | 16 | main.addClass('offset2'); 17 | 18 | } 19 | } 20 | 21 | $('a[data-toggle=tooltip]').tooltip(); 22 | 23 | $('#codeinput').focus(); 24 | 25 | adjustSidebar(); 26 | 27 | 28 | 29 | $('.sidebar').niceScroll(niceScrollLight); 30 | $('html').niceScroll(niceScrollDark); 31 | 32 | $(window).bind('resize', adjustSidebar); 33 | } 34 | ); -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/js/theme.js: -------------------------------------------------------------------------------- 1 | var theme = (function () { 2 | var loading, loaded, 3 | loaderClass = 'loading'; 4 | 5 | loading = function (el) { 6 | var loader; 7 | //el.children().hide(); 8 | loader = $('.' + loaderClass, el); 9 | if (loader.length === 0) { 10 | loader = el.prepend('
'); 11 | } 12 | loader.show(); 13 | }; 14 | 15 | loaded = function (el, data) { 16 | var children; 17 | $('.' + loaderClass, el).hide(); 18 | children = el.children(':not(.' + loaderClass + ')'); 19 | if (!data) { 20 | children.show(); 21 | return; 22 | } 23 | children.remove(); 24 | el.append(data); 25 | }; 26 | 27 | return { 28 | loading: loading, 29 | loaded: loaded 30 | }; 31 | })(); -------------------------------------------------------------------------------- /apps/sample/jaggery.conf: -------------------------------------------------------------------------------- 1 | { 2 | "displayName":"Minimal Sample", 3 | "welcomeFiles":["index.jag", "index.html"], 4 | "errorPages": 5 | { 6 | "500":"/error1.html", 7 | "404":"/error.html" 8 | } 9 | , 10 | "securityConstraints":[ 11 | { 12 | "securityConstraint":{ 13 | "webResourceCollection":{ 14 | "name":"foo", 15 | "urlPatterns":["/bar/*"], 16 | "methods":["GET", "POST", "PUT", "DELETE"] 17 | }, 18 | "authRoles":["admin"] 19 | } 20 | } 21 | ], 22 | "loginConfig":{ 23 | "authMethod":"BASIC" 24 | }, 25 | "securityRoles":["admin", "everyone"], 26 | "urlMappings" : [ 27 | { 28 | "url" : "/sample/uri-mapping", 29 | "path" : "/index.jag" 30 | } 31 | ], 32 | "initScripts" : ["init.js"], 33 | "destroyScripts" : ["destroy.js"] 34 | } 35 | -------------------------------------------------------------------------------- /apps/sample/ws/client.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/response.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var param = request.getParameter('action'); 4 | 5 | switch(param) { 6 | case "member": 7 | response.content = "My response content"; 8 | print(", status : " + response.status); 9 | print(", contentType : " + response.contentType); 10 | break; 11 | 12 | case "operation": 13 | response.addHeader('custom-header', 'jaggery_response'); 14 | response.sendError(200); 15 | break; 16 | 17 | case "Redirect" : 18 | response.sendRedirect('http://localhost:9763/tmp/response.jag'); 19 | break; 20 | 21 | case "cookie": 22 | var cookie = { 23 | 'name' : 'test', 24 | 'value' : 'Cookie testing' 25 | }; 26 | response.addCookie(cookie); 27 | print('added a test cookie'); 28 | break; 29 | 30 | default: 31 | print(response.status); 32 | break; 33 | } 34 | 35 | %> -------------------------------------------------------------------------------- /apps/ROOT/config/properties/parse.json: -------------------------------------------------------------------------------- 1 | { 2 | "sections": [ 3 | { 4 | "title": "Parameters", 5 | "columns": ["Parameter", "Type", "Description"], 6 | "rows": [ 7 | { 8 | "Parameter": "jsonString", 9 | "Type": "String", 10 | "Description": "
var jsonString = '{\"name\":\"nuwan\"}';
Stringified JSON object " 11 | } 12 | ] 13 | }, { 14 | "title": "Return values", 15 | "columns": ["Value", "Type", "Description"], 16 | "rows": [ 17 | { 18 | "Value": "obj", 19 | "Type": "Object", 20 | "Description": "
var jsObj = parse(jsonString)
JSON object" 21 | } 22 | ] 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /apps/shout/font/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Generated by Font Squirrel (http://www.fontsquirrel.com) on December 6, 2011 04:28:55 AM America/New_York */ 2 | 3 | 4 | 5 | @font-face { 6 | font-family: 'DroidSansRegular'; 7 | src: url('DroidSans-webfont.eot'); 8 | src: url('DroidSans-webfont.eot') format('embedded-opentype'), 9 | url('DroidSans-webfont.woff') format('woff'), 10 | url('DroidSans-webfont.ttf') format('truetype'), 11 | url('DroidSans-webfont.svg#DroidSansRegular') format('svg'); 12 | font-weight: normal; 13 | font-style: normal; 14 | 15 | } 16 | 17 | @font-face { 18 | font-family: 'DroidSansBold'; 19 | src: url('DroidSans-Bold-webfont.eot'); 20 | src: url('DroidSans-Bold-webfont.eot') format('embedded-opentype'), 21 | url('DroidSans-Bold-webfont.woff') format('woff'), 22 | url('DroidSans-Bold-webfont.ttf') format('truetype'), 23 | url('DroidSans-Bold-webfont.svg#DroidSansBold') format('svg'); 24 | font-weight: normal; 25 | font-style: normal; 26 | 27 | } 28 | 29 | -------------------------------------------------------------------------------- /apps/ROOT-old/includes/editarea_popup.jag: -------------------------------------------------------------------------------- 1 | <% 2 | var param = request.getParameter('code'); 3 | %> 4 | 5 | -------------------------------------------------------------------------------- /apps/freshometer/js/jquery.noisy.min.js: -------------------------------------------------------------------------------- 1 | (function(c){c.fn.noisy=function(b){var b=c.extend({},c.fn.noisy.defaults,b),d,h,a=!1;try{h=!0,a=localStorage.getItem(window.JSON.stringify(b))}catch(l){h=!1}if(a)d=a;else{a=document.createElement("canvas");if(a.getContext){a.width=a.height=b.size;for(var i=a.getContext("2d"),e=i.createImageData(a.width,a.height),j=b.intensity*Math.pow(b.size,2),k=255*b.opacity;j--;){var f=~~(Math.random()*a.width),g=~~(Math.random()*a.height),f=4*(f+g*e.width),g=j%255;e.data[f]=g;e.data[f+1]=b.monochrome?g:~~(255* 2 | Math.random());e.data[f+2]=b.monochrome?g:~~(255*Math.random());e.data[f+3]=~~(Math.random()*k)}i.putImageData(e,0,0);d=a.toDataURL("image/png");if(0!=d.indexOf("data:image/png")||c.browser.msie&&9>c.browser.version.substr(0,1)&&32768 -------------------------------------------------------------------------------- /apps/ROOT/themes/ROOT/js/tryit.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | $('#tryit').toggleClass('active') 3 | }); 4 | 5 | $('#querybtn').click(function(e) { 6 | e.preventDefault(); 7 | $('#queryblock').toggleClass('hidden'); 8 | $('#querybtn').toggleClass('hidden'); 9 | 10 | }); 11 | 12 | $('#queryremove').click(function(e) { 13 | e.preventDefault(); 14 | $('#queryblock').toggleClass('hidden'); 15 | $('#querybtn').toggleClass('hidden'); 16 | $('#qString').val(''); 17 | }) 18 | var editor = CodeMirror.fromTextArea(document.getElementById("codeinput"), { 19 | lineNumbers : true, 20 | matchBrackets : true, 21 | mode : "application/x-ejs", 22 | indentUnit : 4, 23 | theme : 'ambiance', 24 | indentWithTabs : true, 25 | enterMode : "keep", 26 | tabMode : "shift", 27 | extraKeys : { 28 | "Ctrl-Space" : function(cm) { 29 | CodeMirror.simpleHint(cm, CodeMirror.javascriptHint); 30 | } 31 | } 32 | }); 33 | 34 | function populate() { 35 | var text = editor.getValue(); 36 | alert(text); 37 | document.getElementById("cont").innerHTML = document.editor.getvalue(); 38 | } 39 | 40 | -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/java/org/jaggeryjs/integration/tests/JaggeryTestConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | *WSO2 Inc. licenses this file to you under the Apache License, 5 | *Version 2.0 (the "License"); you may not use this file except 6 | *in compliance with the License. 7 | *You may obtain a copy of the License at 8 | * 9 | *http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | *Unless required by applicable law or agreed to in writing, 12 | *software distributed under the License is distributed on an 13 | *"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | *KIND, either express or implied. See the License for the 15 | *specific language governing permissions and limitations 16 | *under the License. 17 | */ 18 | package org.jaggeryjs.integration.tests; 19 | 20 | public class JaggeryTestConstants { 21 | public static final String POX_USER = "poxUser1"; 22 | public static final String POX_USER_PASSWORD = "poxUser1Password"; 23 | public static final String POX_ROLE_NAME = "poxRole1"; 24 | } 25 | -------------------------------------------------------------------------------- /apps/ROOT-old/css/tryit.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | color:#000000; 4 | background-color:#ffffff; 5 | margin:4px; 6 | margin-top:0px; 7 | } 8 | 9 | .maintable 10 | { 11 | width:100%; 12 | background-color:#009999; 13 | color:#000000; 14 | border:solid #e5eecc 1px; 15 | margin-left:0px; 16 | } 17 | 18 | .codeinput 19 | { 20 | border:1px solid #c3c3c3; 21 | width:100%; 22 | height:400px; 23 | background-color:#ffffff; 24 | color:#000000; 25 | } 26 | 27 | .toptext 28 | { 29 | color:#617f10; 30 | font-family:verdana; 31 | margin-top:0px; 32 | margin-bottom:8px; 33 | font-size:120%; 34 | } 35 | 36 | .result_header 37 | { 38 | color:#000000; 39 | margin-bottom:12px; 40 | margin-top:0px; 41 | font-family:verdana; 42 | font-size:90%; 43 | } 44 | 45 | .bottomtext_div 46 | { 47 | margin-right:3px; 48 | } 49 | 50 | .bottomtext 51 | { 52 | color:#ffffff; 53 | font-family:verdana; 54 | margin-bottom:0px; 55 | margin-top:6px; 56 | font-size:90%; 57 | } 58 | 59 | .output{ 60 | border:1px solid #c3c3c3; 61 | width:100%; 62 | height:400px; 63 | background-color:#ffffff; 64 | color:#000000; 65 | } -------------------------------------------------------------------------------- /modules/integration/tests-integration/src/test/resources/process.jag: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | var process = require("process"); 4 | var action = request.getParameter('action'); 5 | 6 | //test cover getEnv,getEnvs,setProperty,getProperty,getProperties 7 | switch(action) { 8 | case "getEnv": 9 | print(process.getEnv("JAVA_HOME")); 10 | break; 11 | case "getEnvs": 12 | print(process.getEnvs().JAGGERY_HOME.length > 7); 13 | break; 14 | case "setProperty": 15 | print(process.setProperty("test", "testname")); 16 | break; 17 | case "setProperty2": 18 | print(process.setProperty("test", "testname")); 19 | break; 20 | case "getProperty": 21 | print(process.getProperty("test")); 22 | break; 23 | case "getProperties": 24 | print("portOffset " + process.getProperties().portOffset); 25 | break; 26 | case "getProperties2": 27 | var out = stringify(process.getProperties()); 28 | print(out.length > 100); 29 | break; 30 | default: 31 | print("Testing Process HostObject"); 32 | } 33 | 34 | 35 | 36 | 37 | %> -------------------------------------------------------------------------------- /modules/integration/tests-common/integration-test-utils/src/main/java/org/jaggeryjs/integration/common/utils/TestExceptionHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | *Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 3 | * 4 | *WSO2 Inc. licenses this file to you under the Apache License, 5 | *Version 2.0 (the "License"); you may not use this file except 6 | *in compliance with the License. 7 | *You may obtain a copy of the License at 8 | * 9 | *http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | *Unless required by applicable law or agreed to in writing, 12 | *software distributed under the License is distributed on an 13 | *"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | *KIND, either express or implied. See the License for the 15 | *specific language governing permissions and limitations 16 | *under the License. 17 | */ 18 | 19 | package org.jaggeryjs.integration.common.utils; 20 | 21 | public class TestExceptionHandler implements Thread.UncaughtExceptionHandler { 22 | 23 | public Throwable throwable; 24 | 25 | public void uncaughtException(Thread t, Throwable e) { 26 | throwable = e; 27 | } 28 | } 29 | --------------------------------------------------------------------------------