Atlanta Used Acura Find New Homes Chrysler Motor Domestic Violence The Lion King Tickets Scion Cleaning Maid Anxiety Relief Diversity Training Movado Watches Garage Doors Make Money On The Internet Berlin Germany Depression Counseling Nutrition Discount Microsoft Office Software Custom Logo Design Customized Promotional Products Electric Vibrators Anxiety Problems Makeup Cheap Gift Baskets Karaoke Machines New Jersey Cheap Airfare Tickets How To Make Money Online Fast Life Is Good T Shirt Making Easy Money Online Unique Gift Idea E Bay Alzheimers Disease Major Depression Parkour Gilmore Girls Tv Washington Dc Sliding French Doors Rent Audio Books Car Crash Desk Lamps Embassy Suites Mary Kay Consultants Las Vegas Show Granite Tile Flooring My Pay Uk Dr Phil Sympathy Gift Baskets Celtic Engagement Rings Coffee Makers Outdoor Grills Motorola Cell Advertising Signs Buy Diamonds Providian Window Treatments Hope Vitamins Electrical Engineering Toni Braxton School Fundraising Troy King Mattress Goverment Grants Pc Sales Custom Window Treatments Ovulation Kits Used Dodge Ram Double French Doors Grants Money Anti Spyware Stem Cells Panama Vacation Money From Home Computer Technology Sports Tickets For Sale Shutters Sports Illustrated Magazine Gold Bullion Coins Auto Dealer Kids Gift Baskets Cheap Airline Tickets To Florida Mattress Outlet Bulgaria Public Speaking Course Bass Pro Back Pain Treatment Discount Dog Beds Office Furniture Engraved Signs Mitsubishi Auto Glass Prices Modular Homes Ma Savannah Firestone Tires Flat Panel Tv Stands Web Proxy California Ebay Marketing Car Payment Calculator Mustang Dealer 42 Plasma Tv Used Audi Coffee Hoodia Plant Mercedes Convertibles Pontiac Grand Prix Car Work At Home Opportunity Candy Baskets Airfare Ticket Criminal Background Check Microsoft Office Software Cheap Car Parts Breast Cancer Screening Go Com Computer Desks The Rabbit Vibrator Landscape Design Wireless Microphone Genital Warts Discount Las Vegas Vacation Crystal Lamps Park City Skiing Stem Cell Next Cloths Home Office Computer Desk Gps Navigation Systems Martial Arts Training Tv Stands Unique Wedding Favors Social Anxiety Disorder Cancer Symptoms Home Entertainment Centers Purchase Microsoft Office 2003 Small Jewelry Boxes Consumer Report Work At Home Moms Constipation Replace Auto Glass Futon Mattress Designer Engagement Rings Cheap Checks Burr Coffee Grinder Kathy Ireland Magazine Subscription Deals Mens Pants Spring Break Trips Make Money Internet New Modular Homes Builders Online Calendar Compaq Cheap Granite Countertops Pontiac Gto Comparison Bmi Dentist Locator Minnesota Vacation Resin Wicker Furniture Samsung Blackjack Refacing Kitchen Cabinets Ford Hybrid Cars Personalized T Shirts Hotel Discounts Make Money Typing Make Easy Money Online Buy.com Major Depression Newport News Speaking In Public Modular Homes Ma Karaoke Cds Discount Dog Beds Cheap Car Rentals Instant Background Check Ellis Island Sports Tickets Tyler Wedding Reception Favors Friend Internet Money Motorola Q Modeling Classes Electrical Engineering Carnival Cruise Ship Akc English Bulldog Puppies Careers Cholesterol Desert Subscriptions Wrought Iron Balusters Ibs Honeymoon Destinations Buy Diamonds Lcd Flat Panel Tv Hotel Room Custom Gifts Logo Development Dance Accessories Email Cheap Magazines Tax Return Preparation Treasure Island Pearl Wedding Jewelry Beaver Tractor Part Buy Contemporary Art Brand New Homes New Baby Gifts Us Gold Coins Used Audi First Aid Certification Tax Cheap Magazine Subscription Auto Glass Windshield Replacement Spring Break Packages Hp Pet Grooming Supplies Radio City Christmas Spectacular Tickets Make Money With No Money Birthday Gift Baskets Mattress Store Firestone Tires Lincoln Car Mp3 Players Remedy Natural Cure For Yeast Infection Bar Ice Maker Air America Free Mls Listings 2006 Chrysler San Francisco Airport Security Albuquerque New Mexico 2005 Acura Elk Bifocal Reading Glasses New Acura Home Solar Panels Couples Baby Shower Invitations Find Romance Security Guards Zebra Christian Dating Service Do It Yourself Credit Repair Sliding French Doors Photo Cheap Laptops Wholesale Rhinestone Jewelry Jack Rabbit Vibe Government Grants Cheap Logo Design Flat Panel Tv Stands Custom Bumper Stickers Mls Personal Finance Company Metal Bar Stools Cell Phone Ring Tones Dating Agency Business Logo Nifty Logo Designers Wedding Bands Internet Gambling Vacation Rentals Computer Parts General Dentist Paris France Black Dating Services Holiday Gifts Bare Fireplace Screens Orthodontic Braces Portland Maine Single Dating Acura Dealership Easy Ways To Make Money Computer Desks Uk Gm Amber Earrings Billiard Pool Table North Myrtle Beach South Carolina Atlantis Investment Discount Dance Shoes Ways To Make Money Fast New Lincoln North Carolina To Make Easy Money Tax Refund Calculator Sympathy Gift Baskets Cheap Vacations Tool Federal Auto Auction Inexpensive Wedding Favors Motorola Cellular Phone Dating Site Bulk Candy Fundraising Ideas Newport News Va Maid Service Shower Invitations Funeral Flowers Maplestory Plasma Tv Sale Prescription Glasses Jewelry Store Colon Cleansing Product Office Furniture Warehouse Black Dating Site Sony Mp3 Player Wholesale Engagement Rings French Doors Breast Cancer Prevention Suntrust Bank Converse Boots Claire Hard Glass Shower Doors Overstock Electronics Band Saw Commercial Real Estate Viking Hotel Reservations Carhartt Coats New Real Estate Listings True Religion Brand Jeans Green Tea Diet Used Truck Sales Pc Sales Company Logo Men's Dress Shirts Boston True Com Flat Panel Tv Breast Cancer Support Mail Order Prescription Drugs Life Is Good Shirt Adult Braces Mass Cell Phone Accessories Anxiety Disorder All Inclusive Mexico Vacations Childrens Bunk Beds Gift Baskets Custom Invitations Notary Public Renewal At Dirt Cheap Cars Map Of The World Asian Lamps Gps Navigation Systems Tall Bar Stools Residential Construction Massage Chair Female Vibrators Mary Kay Beauty Consultant The Lion King Tickets Peta Winter Park Colorado Italian Gift Baskets Unique Baby Shower Invitations Free Advertising Corporate Chair Massage Sbc Dsl Used Grand Cherokee Used Acura Chevy Chase Small Computer Desks Adobe Photoshop Software New York Dating Breast Cancer Discount Laptops Sierra Charcoal Grills Lawn Care Landscaping Fitness Mattress Discounters Sony Psp Information Hewlett Packard Official Pda Cell Phone Wedding Gift Baskets Hud Homes Compact Tractors Memory Upgrades Massachusetts Farm Bureau Steel Garage Doors Custom Modular Homes Index Maui Hawaii John Deere Tractor Parts Rabbit Dildo Really Cheap Airline Tickets Education Grants Kitchen Cabinet Time Magazine Subscription Shop Laptop Weight Loss Pills Loose Diamonds Cheap Perfume Payment Calculator Cheap Carnival Cruises Vellum Birth Announcements Granite Tile Flooring Learn To Play The Guitar Pine Bunk Beds Cheap Vacation Deals Drawing Classes Ups.com Mls Real Estate Listing Bunk Beds Gaming Pc Online Background Check Ge Monogram Skin Care Products For Men Art Supplies Canvas Internet Via Satellite Online Gift Baskets Auto Payment Calculator Kodak Carnival Com Aladdin Graphic Design Firm Harley Davidson Cooking Bones Television Show Valentine Gift Maytag Replacement Parts Luxury Hotel Cheap Plane Tickets Hgh Las Vegas Travel Deal Security Officers Landscaping Service Myrtle Beach Rubber Stamps Aerosmith Concert Tickets Carbon Monoxide Alarm North Myrtle Beach Sc New Homes For Sale Cheap Flights Paris Cheap Diamond Rings Vegas Vacation Package Discount Ipods Hegre Quick Signs Swivel Tv Stands Furniture Warehouse Denmark Plymouth Neon Granite Contractors Yeast Infection Remedy Indoor Signs Unique Area Rugs Duke Energy Las Vegas Package Bed Sheets Fundraising For Schools Tanning Generators Oregon Yellowstone National Park Dick's Sporting Goods Genital Herpes Photo Mustang Dealership Seamless Shower Doors Microsoft Office Pro Toyo Tires Christmas Gifts For Dad Background Check Best Dating Sites Bones Tv Show Last Minute Airfare Phantom Of The Opera Diet And Weight Loss Fishing Tackle Store Blog Passion Online Background Checks Discount Florists Gifts Akon Ringtones All Inclusive Mexico Vacations Breast Cancer Research College Grants Lake Forest La Dating Baby Gap Sectional Garage Doors Bones Tv Show Cell Phone Ring Tones Online Employment Make Money Adsense Rack Jack Rabbit Vibrators Ways To Lose Weight Make Money With No Money Lower Back Pain Relief Hiv Information Beaver

ponedjeljak, 18. veljače 2008.

IncludeJS

Justin Meyer has been working on a JavaScript library named IncludeJS and has released a 0.1 alpha 1 Developer package. IncludeJS lets developers include and compress JavaScript files easily. The hope for the library is "to bridge the gap between frameworks like jQuery/Prototype which guess at what you will most likely need, and frameworks like MooTools, which are great if you know exactly what you want and don't need to look in the source."

IncludeJS was originally a component of JavaScriptMVC - an open source JavaScript Model-View-Controller framework. The framework is going through some major changes and individual components are being extracted to make each individually useful.

Features of IncludeJS:

Relative paths.

Instead of including files relative to the current page's url,
IncludeJS includes files relative to your JavaScript files' urls.
Forget about scanning the page's script tags for your library's path.
IncludeJS lets you organize your scripts however you want.

Dynamic compression.

IncludeJS uses Dean Edwards packer
to automatically compress your
JavaScripts. Unlike server-side compression scripts,
compression is determined at runtime. This makes
it easy to compress large libraries with optional plugins.

Highlights.

- Consistant include order (last-in-first-out)
- FF 1.5+, IE 6+, Opera 9, Safari 3.
- Works with libraries like Prototype and jQuery.
- MIT license.
- 3 KB compressed.
- Files visible in Firebug.

Usage

1) Include the library in your page

<script src="include.js" type="text/javascript"
script>

2) Include JavaScript files with the include function, files are relative to the including file and will be included in LIFO [last-in-first-out] order.

<script type="text/javascript">
include( 'javascripts/prototype',
'javascripts/myapplication'
)
script>

3) Compress your app by adding the line:

include.setup('compress')

before your includes, after the page loads you're presented with a compressed version of the code.

<script type="text/javascript">
include.setup('compress')
include( 'javascripts/prototype',
'javascripts/myapplication'

)
script

4) Run it! After you've saved the compressed version of the code, change the "compress" argument to "production" and specify the path to the newly created library as a second argument.

<script type="text/javascript">
include.setup('production','path/to/prod')
include( 'javascripts/prototype',
'javascripts/myapplication'
)

script

Nema komentara: